example.service
· 173 B · SYSTEMD
Raw
[Unit]
Description=Apache web server
After=network.target
[Service]
ExecStart=/usr/local/bin/mydaemon
Type=oneshot
Restart=on-failure
[Install]
WantedBy=multi-user.target
| 1 | [Unit] |
| 2 | Description=Apache web server |
| 3 | After=network.target |
| 4 | |
| 5 | [Service] |
| 6 | ExecStart=/usr/local/bin/mydaemon |
| 7 | Type=oneshot |
| 8 | Restart=on-failure |
| 9 | |
| 10 | |
| 11 | [Install] |
| 12 | WantedBy=multi-user.target |