File: yaws.service

package info (click to toggle)
yaws 2.1.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,012 kB
  • sloc: erlang: 42,153; sh: 2,501; javascript: 1,459; makefile: 968; ansic: 890; lisp: 79; python: 34; xml: 12; php: 1
file content (24 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[Unit]
Description=High performance HTTP 1.1 webserver written in Erlang
After=network.target remote-fs.target

[Service]
Type=forking
GuessMainPID=no

Environment="YAWS_CONF=--conf %etcdir%/yaws/yaws.conf"
#Environment="YAWS_ID=--id myserverid"

ExecStart=%bindir%/yaws --daemon --heart $YAWS_CONF $YAWS_ID
ExecStartPost=%bindir%/yaws $YAWS_ID --wait-started=10

ExecReload=%bindir%/yaws $YAWS_ID --hup

ExecStop=%bindir%/yaws $YAWS_ID --stop
ExecStopPost=%bindir%/yaws $YAWS_ID --wait-stopped=10

Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target