docs/core/howto/listings/systemd/www.example.com.static.service
raw| 1 | [Unit] |
| 2 | Description=Example Web Server |
| 3 | |
| 4 | [Service] |
| 5 | ExecStart=/usr/bin/twistd \ |
| 6 | --nodaemon \ |
| 7 | --pidfile= \ |
| 8 | web --listen tcp:8080 --path . |
| 9 | |
| 10 | WorkingDirectory=/srv/www/www.example.com/static |
| 11 | |
| 12 | User=nobody |
| 13 | Group=nobody |
| 14 | |
| 15 | Restart=always |
| 16 | |
| 17 | [Install] |
| 18 | WantedBy=multi-user.target |