2019-02-16 16:28:01 +00:00
|
|
|
[Unit]
|
2019-12-14 12:45:41 +00:00
|
|
|
Description=Travelynx Railway Checkin Service
|
2019-02-16 16:28:01 +00:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2019-03-27 19:03:56 +00:00
|
|
|
RemainAfterExit=yes
|
|
|
|
PIDFile=/tmp/travelynx.pid
|
|
|
|
|
2019-12-14 12:45:41 +00:00
|
|
|
ExecStart=/srv/www/travelynx/local/bin/hypnotoad -f index.pl
|
|
|
|
ExecStop=/srv/www/travelynx/local/bin/hypnotoad -s index.pl
|
|
|
|
ExecReload=/srv/www/travelynx/local/bin/hypnotoad index.pl
|
2019-03-27 19:03:56 +00:00
|
|
|
|
|
|
|
User=travelynx
|
2019-02-16 16:28:01 +00:00
|
|
|
WorkingDirectory=/srv/www/travelynx
|
2019-03-27 19:03:56 +00:00
|
|
|
|
2019-02-16 16:28:01 +00:00
|
|
|
Environment=LANG=en_US.UTF-8
|
2019-12-14 12:45:41 +00:00
|
|
|
Environment=PERL5LIB=/srv/www/travelynx/local/lib/perl5
|
2019-02-16 16:28:01 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|