docs/core/howto/listings/systemd/www.example.com.socketactivated.service
raw| 1 | [Unit] |
| 2 | Description=Example Web Server |
| 3 | Requires=www.example.com.socket |
| 4 | |
| 5 | [Service] |
| 6 | ExecStart=/usr/bin/twistd \ |
| 7 | --nodaemon \ |
| 8 | --pidfile= \ |
| 9 | web --listen systemd:domain=INET:name=my-web-port --path . |
| 10 | |
| 11 | WorkingDirectory=/srv/www/www.example.com/static |
| 12 | |
| 13 | User=nobody |
| 14 | Group=nobody |
| 15 | |
| 16 | Restart=always |