在Ubuntu Linux的启动/后台运行python脚本-启动服务失败,找不到单元

在Ubuntu Linux的启动/后台运行python脚本-启动服务失败,找不到单元,linux,python-3.x,ubuntu,configuration,upstart,Linux,Python 3.x,Ubuntu,Configuration,Upstart,我编写了一个python脚本,需要它全天候运行。我以前没有做过,所以我决定在运行Ubuntu的数字海洋云中使用upstart,并遵循下面的教程 下面是我的conf文件pdlb.conf,位于/etc/init中 description "A basic bot to get fixture information" author "abcuser" start on runlevel [2345] exec python3 /home/abcuser/bot/pdlb.py >>

我编写了一个python脚本,需要它全天候运行。我以前没有做过,所以我决定在运行Ubuntu的数字海洋云中使用upstart,并遵循下面的教程

下面是我的conf文件pdlb.conf,位于/etc/init中

description "A basic bot to get fixture information"
author "abcuser"

start on runlevel [2345]
exec python3 /home/abcuser/bot/pdlb.py >> /var/log/pdlb.log
我使用init checkconf检查了语法,它显示了syntaxOK

在运行这个(sudo服务pdlb start)时,我遇到了以下错误,我不知道如何修复它。pdlb.py文件位于正确位置,尚未创建日志文件

Failed to start pdlb.service: Unit pdlb.service not found.
你知道我在这个过程中哪里出错了吗?任何帮助都将不胜感激,谢谢