[Unit] Description=Odyssey AutoReminder Scheduler Service After=network.target postgresql.service Wants=postgresql.service [Service] Type=simple User=www-data Group=www-data WorkingDirectory=/var/www/html/odyssey-reminder ExecStart=/bin/bash scripts/run-scheduler.sh Restart=always RestartSec=10 StandardOutput=journal StandardError=journal SyslogIdentifier=odyssey-autoreminder # Environment variables Environment=PATH=/usr/bin:/bin:/usr/local/bin Environment=PHP_BINARY=/usr/bin/php # Security settings NoNewPrivileges=true PrivateTmp=true ProtectSystem=strict ReadWritePaths=/var/www/html/odyssey-reminder/storage [Install] WantedBy=multi-user.target