32cee7c65f
Prompts used since the previous commit: - sudo: useradd: command not found Special observations: - If useradd is unavailable, remote deployment now falls back to the existing SSH user and primary group. - The systemd template now has a separate group placeholder. - verplaats_log.json remains modified from the user's run and was intentionally not staged.
22 lines
597 B
Desktop File
22 lines
597 B
Desktop File
[Unit]
|
|
Description=Mailcat IMAP sorting daemon
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=__APP_USER__
|
|
Group=__APP_GROUP__
|
|
WorkingDirectory=__APP_DIR__
|
|
ExecStart=/usr/bin/python3 __APP_DIR__/sort_mail_daemon.py --account __ACCOUNT__ --folder INBOX --state-file /var/lib/mailcat/sort_mail_daemon_state.json --log-file /var/log/mailcat/sort_mail_daemon.log
|
|
Restart=always
|
|
RestartSec=30
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
ReadWritePaths=__APP_DIR__ /var/lib/mailcat /var/log/mailcat
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|