Tag: systemd

启动rpcbind的问题

我正面临着rpcbind的问题。 即使在启用服务后,重新启动后服务也无法启动。 当我在重启后运行systemctl status rpcbind时,我得到以下输出。 root@ubuntu:~# systemctl status rpcbind ● rpcbind.service – RPC bind portmap service Loaded: loaded (/lib/systemd/system/rpcbind.service; indirect; vendor preset: enabled) Drop-In: /run/systemd/generator/rpcbind.service.d └─50-rpcbind-$portmap.conf Active: inactive (dead) root@ubuntu:~# 如果我启动服务systemctl start rpcbind ,服务将启动。 当我使用systemctl enable rpcbind命令启用服务时,我得到以下输出。 root@ubuntu:~# systemctl enable rpcbind Synchronizing state of rpcbind.service with SysV init with /lib/systemd/systemd-sysv-install… Executing /lib/systemd/systemd-sysv-install enable rpcbind 输出cat […]

启动网络服务后,无法在systemd中启动Activation.service

我有一个Activation.service ,我希望在网络服务成功启动后在启动期间执行。 这是Activation.service文件: [Unit] Description=Starting activation service during boot Wants=network-online.target After=network-online.target [Service] Type=forking ExecStart=/opt/Neurotec_Biometric_10_0_SDK/Bin/Linux_x86_64/Activation/run_pgd.sh TimeoutSec=30 Restart=on-failure RestartSec=10 StartLimitInterval=350 StartLimitBurst=10 [Install] WantedBy=multi-user.target Alias=Activation.service run_pgd.sh脚本工作正常,我在加载systemd之前测试了该脚本。 但是sudo systemctl start Activation.service会抛出错误。 这是我从systemctl status Activation.service获得的systemctl status Activation.service ● Activation.service – Starting activation service during boot Loaded: loaded (/etc/systemd/system/Activation.service; disabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Thu 2017-11-23 […]

如何反转这个dpkg-divert命令?

我需要扭转这些线的作用: sudo dpkg-divert –local –rename –add /sbin/initctl ln -s /bin/true /sbin/initctl 我这样做是为了从systemd切换到upstart所以我可以完成安装一个破损的包并删除它。 目前我的系统没有加载任何UI。

新贵或系统

所以我很困惑。 我通过谷歌获得了大量混合信息。 截至今天,Ubuntu使用的是什么? Ubuntu是选择使用和支持Upstart,还是使用Systemd? 如果可以的话,我想得到多个回复,所以我可以在统计上更好地过滤意见。 谢谢

16.04 nfs引导时挂载问题

首先感谢您的时间。 我已经和这个问题争了两天了。 我在ubuntu 14.04中拥有相同的环境,并且工作正常。 那么,让我们开始吧: 我想在启动时挂载NFS。 这个NFS将有/ etc / apache2和其他配置文件夹。 所以,我的fstab(在14.04工作)看起来像这样: XXXX:/share_NFS /mnt/nas nfs auto,nolock,soft,intr,nfsvers=3,tcp,bg,rw 0 0 然后,我绑定我想在NFS中挂载的每个文件夹,如下所示: /mnt/nas/config/apache2 /etc/apache2 none auto,rbind,defaults 0 0 /mnt/nas/config/php5 /etc/php5 none auto,rbind,defaults 0 0 /mnt/nas/config/logrotate.d /etc/logrotate.d none auto,rbind,defaults 0 0 /mnt/nas/config/postfix /etc/postfix none auto,rbind,defaults 0 0 /mnt/nas/www /var/www none auto,rbind,defaults 0 0 我的问题 :问题是我启动机器的时候。 有时它安装正确,有时不安装。 如果我重启机器,我有25%的可能性没有正确安装NFS。 如果我制作一个“mount -a”它就可以了。 我几乎可以肯定存在系统问题。 […]

timedatectl或dpkg-reconfigure tzdata in 16.04

我一直在使用以下脚本将Ubuntu 14.04服务器设置为UTC时区: echo “Etc/UTC” > /etc/timezone dpkg-reconfigure –frontend noninteractive tzdata echo UTC=yes >> /etc/default/rcS 现在,在16.04,似乎我可以使用timedatectl配置所有内容。 现在我的脚本看起来像: timedatectl set-local-rtc 0 timedatectl set-ntp 1 timedatectl set-timezone UTC 这是对的吗? 是否将任何服务器设置为使用UTC时区作为本地时间和RTC? 没有运行dpkg-reconfigure tzdata会有什么遗漏

用户登录时触发的systemd目标是什么?

我尝试从upstart迁移,当用户成功登录时会触发我的许多自定义服务。 我想在Ubuntu的新贵的start on desktop-session-start节中找到相同的start on desktop-session-start 。 有人能帮帮我吗?

多个用户的systemd单元文件模板

前一段时间我把这个答案发给了我的问题。 现在,由于不断变化的需求,我想让VNC服务器可供多个用户使用。 该服务应该在启动时启动,并且可用。 我试图将各种参数传递给User=指令(在[Service]部分下)。 我尝试了User=$USER , User=%u ,以及其他一些替代品。 没有用。 根据文档 , User应该是一个单一的和静态的。 但是,文档还在User=指令下面提到了一个DynamicUser ,遗憾的是,这超出了我对systemd理解。 ( 也许我应该尝试User=$USER或User=%u和DynamicUser=true ?不起作用。) 有没有办法为多个用户创建systemd模板单元文件? PS。 似乎可以使用较旧的init.d来完成

如何追溯哪个依赖链导致某个特定包?

例如, openjdk-7-jdk取决于systemd 。 我如何找出导致systemd依赖链? 我试过了debtree openjdk-7-jdk和apt-rdepends openjdk-7-jdk ,但他们没有列出systemd 。 我究竟做错了什么?

16.04 – 系统在启动时挂起

我有一台带有Intel Atom CPU和1GB RAM的Acer Aspire One上网本。 两年来我一直在使用Ubuntu和其他一些发行版没有任何问题。 我已经完美地使用了Ubuntu / Lubuntu / Xubuntu 14.04,14.10,15.04和15.10,并进行了随意的发行版更改(Arch Linux,openSUSE,Linux Mint,elementaryOS,Debian)。 没问题。 但是今天我决定回到Xubuntu,所以我从ubuntu.com抓起了“迷你”安装ISO,消灭了Debian Jessie分区并在那里安装了系统。 安装完成后,我安装了“xubuntu-core”元数据包并重新启动。 但系统达到了“关于系统运行级别更改的开始更新UTMP”。 消息并坐在那里,闪烁的光标。 我可以通过按Ctrl + Alt + Fx甚至startxfce4(以root身份)访问其他TTY,但这个问题真让我讨厌。 所以我从lubuntu.net下载了Lubuntu 16.04 ISO并安装了它。 由于我没有可用的DVD或USB驱动器,我将其放入备份分区并使用GRUB2启动Lubuntu安装介质,使用 set root=(hd0,msdos4) loopback loop /lubuntu-16.04-desktop-i386.iso linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/lubuntu-16.04-desktop-i386.iso config noprompt noeject initrd (loop)/casper/initrd.lz boot 但它也陷入了完全相同的消息。 不同的是,现在我无法改变TTY,但我认为这是因为它是一个现场媒体。 有人建议它可能是图形驱动程序问题,但我不确定。 我也看到了一些Mageia人的类似问题。 有人能帮我吗?