From fb148c9e25f3a4d720864ecec6ca8da71ba162fa Mon Sep 17 00:00:00 2001 From: Nikola Petrov Date: Mon, 29 Sep 2025 14:46:34 +0200 Subject: [PATCH] caldav service --- files/my-caldav.service | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 files/my-caldav.service diff --git a/files/my-caldav.service b/files/my-caldav.service new file mode 100644 index 0000000..e93b5a0 --- /dev/null +++ b/files/my-caldav.service @@ -0,0 +1,24 @@ +[Unit] +# describe the app +Description=My CalDav +# start the app after the network is available +After=network.target + +[Service] +# usually you'll use 'simple' +# one of https://www.freedesktop.org/software/systemd/man/systemd.service.html#Type= +Type=simple +# which user to use when starting the app +User=root +# path to your application's root directory +WorkingDirectory=/root/caldav +# the command to start the app +# requires absolute paths +ExecStart=/root/caldav/portable_python/bin/python /root/caldav/server.py +# restart policy +# one of {no|on-success|on-failure|on-abnormal|on-watchdog|on-abort|always} +Restart=always + +[Install] +# start the app automatically +WantedBy=multi-user.target