Skip to content

Instantly share code, notes, and snippets.

@frague59
Last active October 28, 2016 08:34
Show Gist options
  • Save frague59/dbbc96736cd36be313cca40e6c161612 to your computer and use it in GitHub Desktop.
Save frague59/dbbc96736cd36be313cca40e6c161612 to your computer and use it in GitHub Desktop.
# Simple service unit to start / stop the scheduler.
# This unit has been mainly written to manage start of scheduler on reboot,
# but it can be used to stop / start the scheduler at any time.
# François GUÉRIN <[email protected]> 2016
# WTFPL :)
[Unit]
Description=Phraseanet Scheduler Service
Documentation=https://docs.phraseanet.com/3.8/fr/Admin/MoteurDeTaches.html
Documentation=https://docs.phraseanet.com/3.8/en/Admin/TaskManager.html
Requires=apache2.service
[Service]
Type=simple
ExecStart=/var/www/ps3/bin/console scheduler:start # Path can be adapted to match your installation
ExecStop=/var/www/ps3/bin/console scheduler:stop # Path can be adapted to match your installation
User=www-data # Must match the apache2 user, which access (read/write) to the phraseanet storage folder
Group=www-data # Must match the apache2 group, which access (read/write) to the phraseanet storage folder
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment