Files
new_server_setup/files/my-caldav.service
2025-09-29 14:46:34 +02:00

25 lines
686 B
Desktop File

[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