Last active
January 23, 2018 06:51
-
-
Save ZsBT/2c62230978ed82f67b4fc7dd9ee659a1 to your computer and use it in GitHub Desktop.
systemd unit cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description = fotók betöltése | |
After=postgresql.service | |
Requires=postgresql.service | |
Wants=postgresql.service | |
[Service] | |
ExecStart = /home/szerver/foto-devtolt.py | |
ExecReload = /bin/kill -HUP $MAINPID | |
User = szerver | |
StandardOutput = null | syslog | |
Nice = 9 | |
Restart = always on-success on-failure on-abnormal on-abort on-watchdog | |
RestartSec = 30 | |
PIDFile = /run/pidfile.pid | |
Type = forking | |
SuccessExitStatus=143 | |
Environment=CATALINA_PID=/run/shm/vusor2ws.pid | |
[Install] | |
WantedBy=multi-user.target | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment