From b58ddd01a909debba073c6f5ebcee13eff363f7a Mon Sep 17 00:00:00 2001 From: Mitsuo Makuda Date: Mon, 7 Nov 2022 18:50:39 +0000 Subject: [PATCH] Create./conf/systemd.service Signed-off-by: Mitsuo Makuda --- conf/systemd.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 conf/systemd.service diff --git a/conf/systemd.service b/conf/systemd.service new file mode 100644 index 0000000..c70d8ac --- /dev/null +++ b/conf/systemd.service @@ -0,0 +1,15 @@ +[Unit] +Description=Buttons +After=network.target + +[Service] +Type=simple +User=__APP__ +Group=__APP__ +WorkingDirectory=__FINALPATH__/ +ExecStart=__FINALPATH__/venv/bin/buttons --storagedir __DATADIR__ +StandardOutput=append:/var/log/__APP__/__APP__.log +StandardError=inherit + +[Install] +WantedBy=multi-user.target \ No newline at end of file