[Unit] Description=IMAP IDLE to CalDAV daemon After=network-online.target Wants=network-online.target [Service] Type=simple User=imap-idle-caldav ExecStart=/opt/imap-idle-caldav/.venv/bin/imap-idle-caldav -c /etc/imap-idle-caldav/config.yaml Restart=on-failure RestartSec=10 # Hardening NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true PrivateDevices=true ProtectKernelTunables=true ProtectControlGroups=true RestrictSUIDSGID=true [Install] WantedBy=multi-user.target