Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 未找到Ubuntu Xenial upstart服务_Linux_Ubuntu_Ubuntu 14.04_Ubuntu 16.04_Upstart - Fatal编程技术网

Linux 未找到Ubuntu Xenial upstart服务

Linux 未找到Ubuntu Xenial upstart服务,linux,ubuntu,ubuntu-14.04,ubuntu-16.04,upstart,Linux,Ubuntu,Ubuntu 14.04,Ubuntu 16.04,Upstart,我有一个upstart服务,它在trusty中运行良好,只需将我的conf存储在/etc/init/test.conf。现在我已经升级到Xenial 16.04.2 LTS,在找不到服务的地方遇到了问题 现在需要systemd脚本吗?如果您仍然可以使用conf文件创建一个upstart,那么我必须做什么来解决这个问题 下面的示例演示了问题: ubuntu@vagrant:~$ sudo ls -la /etc/init/test.conf -rw-r--r-- 1 root root 126

我有一个upstart服务,它在trusty中运行良好,只需将我的conf存储在
/etc/init/test.conf
。现在我已经升级到Xenial 16.04.2 LTS,在找不到服务的地方遇到了问题

现在需要systemd脚本吗?如果您仍然可以使用conf文件创建一个upstart,那么我必须做什么来解决这个问题

下面的示例演示了问题:

ubuntu@vagrant:~$ sudo ls -la /etc/init/test.conf 
-rw-r--r-- 1 root root 126 Mar 24 10:54 /etc/init/test.conf
ubuntu@vagrant:~$ sudo cat /etc/init/test.conf 
description "Job that runs the foo daemon"
start on runlevel [2345]
exec echo Test Job ran at  `date` >> /var/log/testjob.log
ubuntu@vagrant:~$ sudo service test status
● test.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)
ubuntu@vagrant:~$ sudo service test start
Failed to start test.service: Unit test.service not found.

Xenial Xerus使用systemd而不是upstart。发件人:

Ubuntu 15.10或Debian Jessie的用户可能已经熟悉systemd,它现在是大多数主流GNU/Linux发行版的默认init系统。在Ubuntu上,systemd取代了Canonical的新贵

如果您使用定制的init脚本,或者经常配置长期运行的服务,那么您需要了解systemd的基础知识。有关概述,请阅读


从Vivid问世时起,它可能也很有用。

Xenial Xerus使用systemd而不是upstart。发件人:

Ubuntu 15.10或Debian Jessie的用户可能已经熟悉systemd,它现在是大多数主流GNU/Linux发行版的默认init系统。在Ubuntu上,systemd取代了Canonical的新贵

如果您使用定制的init脚本,或者经常配置长期运行的服务,那么您需要了解systemd的基础知识。有关概述,请阅读


也可能有用,从Vivid出来的时候开始。

没有解释的否决票?没有解释的否决票?