# This file is to be installed as systemd user service. # To install it, as the user you want to run it as, run this: ## mkdir -pv ~/.config/systemd/user ## cp THIS_FILE ~/.config/systemd/user/site-explain.depesz.com.service ## systemctl --user daemon-reload ## systemctl --user enable site-explain.depesz.com.service ## systemctl --user start site-explain.depesz.com.service # Make sure that paths in Service/ExecStart and Service/Environment are correct [Unit] Description=explain.depesz.com webservice After=network.target [Service] Type=simple RestartSec=5 Restart=always ExecStart=/home/depesz/explain.depesz.com/explain.pl prefork -m production -l "http://*:3001" -w 5 Environment="PERL5LIB=/home/depesz/perl5/lib/perl5" [Install] WantedBy=default.target # vim: set filetype=systemd: