1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2025-07-03 00:58:12 +02:00
Files
explain.depesz.com/systemd.service

26 lines
795 B
SYSTEMD
Raw Permalink Normal View History

# This file is to be installed as systemd user service.
# To install it, as the user you want to run it as, run this:
2025-06-12 11:14:11 +02:00
## 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: