From edee52916994b54bc3b4822ef1adfe74265bf26b Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 9 Dec 2018 23:09:32 +0100 Subject: [PATCH] systemd tweak --- conf/systemd.service | 2 +- temp/systemd.service | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 temp/systemd.service diff --git a/conf/systemd.service b/conf/systemd.service index ba0a0e5..23b43e6 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -7,7 +7,7 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ -ExecStart=/usr/bin/python __FINALPATH__/cps.py >> /var/log/__APP__/__APP__.log 2>&1 +ExecStart=/usr/bin/python __FINALPATH__/cps.py [Install] WantedBy=multi-user.target diff --git a/temp/systemd.service b/temp/systemd.service new file mode 100644 index 0000000..ba0a0e5 --- /dev/null +++ b/temp/systemd.service @@ -0,0 +1,13 @@ +[Unit] +Description=calibreweb +After=network.target + +[Service] +Type=simple +User=__APP__ +Group=__APP__ +WorkingDirectory=__FINALPATH__/ +ExecStart=/usr/bin/python __FINALPATH__/cps.py >> /var/log/__APP__/__APP__.log 2>&1 + +[Install] +WantedBy=multi-user.target