Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save solus-hq/1e72f7325e540417ed2f84a8109d5811 to your computer and use it in GitHub Desktop.
Save solus-hq/1e72f7325e540417ed2f84a8109d5811 to your computer and use it in GitHub Desktop.

Revisions

  1. @mbodo mbodo revised this gist Apr 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -139,7 +139,7 @@ List all services with pattern
    ```
    <pattern> - httpd e.g
    systemctl list-units -t service --full | grep abrt | sed 's/^\s*//g' | cut -d " " -f1 | while read s; do systemctl status $s; done
    systemctl list-units -t service --full | grep <pattern> | sed 's/^\s*//g' | cut -d " " -f1 | while read s; do systemctl status $s; done
    ```
    > Link
    * [systemd-list-units-cuts-service-names](https://serverfault.com/questions/734130/systemd-list-units-cuts-service-names)
  2. @mbodo mbodo revised this gist Apr 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -139,7 +139,7 @@ List all services with pattern
    ```
    <pattern> - httpd e.g
    systemctl list-units -t service --full| cut -d' ' -f1 | grep <pattern> | while read s; do systemctl status $s; done
    systemctl list-units -t service --full | grep abrt | sed 's/^\s*//g' | cut -d " " -f1 | while read s; do systemctl status $s; done
    ```
    > Link
    * [systemd-list-units-cuts-service-names](https://serverfault.com/questions/734130/systemd-list-units-cuts-service-names)
  3. @mbodo mbodo revised this gist Apr 3, 2020. 1 changed file with 12 additions and 0 deletions.
    12 changes: 12 additions & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -144,6 +144,18 @@ systemctl list-units -t service --full| cut -d' ' -f1 | grep <pattern> | while r
    > Link
    * [systemd-list-units-cuts-service-names](https://serverfault.com/questions/734130/systemd-list-units-cuts-service-names)

    List all enable units
    ```
    systemctl list-unit-files | grep enabled
    smartd.service enabled
    sshd.service enabled
    sysstat.service enabled
    ...
    ```
    > Link
    * [how-to-list-all-enabled-services-from-systemctl](https://askubuntu.com/questions/795226/how-to-list-all-enabled-services-from-systemctl)

    Reference links:
    * [systemd.service man](https://www.freedesktop.org/software/systemd/man/systemd.service.html)
    * [Useful SystemD commands](http://www.dynacont.net/documentation/linux/Useful\_SystemD\_commands/)
  4. @mbodo mbodo revised this gist Jan 23, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -169,6 +169,7 @@ Reference links:
    * [An example network service with systemd-activated socket in Python](https://gist.github.com/kylemanna/d193aaa6b33a89f649524ad27ce47c4b)
    * [how-can-i-send-a-message-to-the-systemd-journal-from-the-command-line](https://serverfault.com/questions/573946/how-can-i-send-a-message-to-the-systemd-journal-from-the-command-line)
    * [systemd-forking-vs-simple](https://superuser.com/questions/1274901/systemd-forking-vs-simple/1274913)
    * [how-can-a-systemd-service-flag-that-is-is-ready-so-that-other-services-can-wait](https://unix.stackexchange.com/questions/331693/how-can-a-systemd-service-flag-that-is-is-ready-so-that-other-services-can-wait)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  5. @mbodo mbodo revised this gist Nov 14, 2019. 1 changed file with 18 additions and 18 deletions.
    36 changes: 18 additions & 18 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -145,24 +145,24 @@ systemctl list-units -t service --full| cut -d' ' -f1 | grep <pattern> | while r
    * [systemd-list-units-cuts-service-names](https://serverfault.com/questions/734130/systemd-list-units-cuts-service-names)

    Reference links:
    * [systemd.service man] (https://www.freedesktop.org/software/systemd/man/systemd.service.html)
    * [Useful SystemD commands] (http://www.dynacont.net/documentation/linux/Useful\_SystemD\_commands/)
    * [Archlinux systemd wiki] (https://wiki.archlinux.org/index.php/Systemd)
    * [Red Hat RHEL 7 systemd documentation] (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html)
    * [difference-between-systemd-and-terminal-starting-program] (https://unix.stackexchange.com/questions/339638/difference-between-systemd-and-terminal-starting-program/339645#339645)
    * [where-do-i-put-my-systemd-unit-file] (https://unix.stackexchange.com/questions/224992/where-do-i-put-my-systemd-unit-file)
    * [trouble-creating-pid-file-in-systemd-service-script] (https://serverfault.com/questions/824543/trouble-creating-pid-file-in-systemd-service-script)
    * [Fedora - Packaging:Systemd] (https://fedoraproject.org/wiki/Packaging:Systemd)
    * [controlling-a-multi-service-application-with-systemd] (http://alesnosek.com/blog/2016/12/04/controlling-a-multi-service-application-with-systemd/)
    * [rhel7-use-systemd-timers] (https://www.certdepot.net/rhel7-use-systemd-timers/)
    * [how-to-remove-systemd-services] (https://superuser.com/questions/513159/how-to-remove-systemd-services)
    * [systemd-containers-introduction-systemd-nspawn] (https://blog.selectel.com/systemd-containers-introduction-systemd-nspawn/)
    * [archlinux systemd-nspawn] (https://wiki.archlinux.org/index.php/systemd-nspawn)
    * [sd_notify python watchdog implementation] (https://gist.github.com/Spindel/1d07533ef94a4589d348)
    * [sd_notify python service notify implemetation] (https://github.com/bb4242/sdnotify)
    * [python sdnotify library] (https://pypi.org/project/sdnotify/)
    * [creating-a-linux-service-with-systemd] (https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6)
    * [systemd.io] (https://systemd.io/)
    * [systemd.service man](https://www.freedesktop.org/software/systemd/man/systemd.service.html)
    * [Useful SystemD commands](http://www.dynacont.net/documentation/linux/Useful\_SystemD\_commands/)
    * [Archlinux systemd wiki](https://wiki.archlinux.org/index.php/Systemd)
    * [Red Hat RHEL 7 systemd documentation](https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html)
    * [difference-between-systemd-and-terminal-starting-program](https://unix.stackexchange.com/questions/339638/difference-between-systemd-and-terminal-starting-program/339645#339645)
    * [where-do-i-put-my-systemd-unit-file](https://unix.stackexchange.com/questions/224992/where-do-i-put-my-systemd-unit-file)
    * [trouble-creating-pid-file-in-systemd-service-script](https://serverfault.com/questions/824543/trouble-creating-pid-file-in-systemd-service-script)
    * [Fedora - Packaging:Systemd](https://fedoraproject.org/wiki/Packaging:Systemd)
    * [controlling-a-multi-service-application-with-systemd](http://alesnosek.com/blog/2016/12/04/controlling-a-multi-service-application-with-systemd/)
    * [rhel7-use-systemd-timers](https://www.certdepot.net/rhel7-use-systemd-timers/)
    * [how-to-remove-systemd-services](https://superuser.com/questions/513159/how-to-remove-systemd-services)
    * [systemd-containers-introduction-systemd-nspawn](https://blog.selectel.com/systemd-containers-introduction-systemd-nspawn/)
    * [archlinux systemd-nspawn](https://wiki.archlinux.org/index.php/systemd-nspawn)
    * [sd_notify python watchdog implementation](https://gist.github.com/Spindel/1d07533ef94a4589d348)
    * [sd_notify python service notify implemetation](https://github.com/bb4242/sdnotify)
    * [python sdnotify library](https://pypi.org/project/sdnotify/)
    * [creating-a-linux-service-with-systemd](https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6)
    * [systemd.io](https://systemd.io/)
    * [systemd-ignores-return-code-while-starting-service](https://serverfault.com/questions/751030/systemd-ignores-return-code-while-starting-service)
    * [how-do-i-override-or-configure-systemd-services](https://askubuntu.com/questions/659267/how-do-i-override-or-configure-systemd-services)
    * [creating-a-linux-service-with-systemd](https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6)
  6. @mbodo mbodo revised this gist Nov 14, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -168,6 +168,7 @@ Reference links:
    * [creating-a-linux-service-with-systemd](https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6)
    * [An example network service with systemd-activated socket in Python](https://gist.github.com/kylemanna/d193aaa6b33a89f649524ad27ce47c4b)
    * [how-can-i-send-a-message-to-the-systemd-journal-from-the-command-line](https://serverfault.com/questions/573946/how-can-i-send-a-message-to-the-systemd-journal-from-the-command-line)
    * [systemd-forking-vs-simple](https://superuser.com/questions/1274901/systemd-forking-vs-simple/1274913)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  7. @mbodo mbodo revised this gist Oct 25, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -167,7 +167,7 @@ Reference links:
    * [how-do-i-override-or-configure-systemd-services](https://askubuntu.com/questions/659267/how-do-i-override-or-configure-systemd-services)
    * [creating-a-linux-service-with-systemd](https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6)
    * [An example network service with systemd-activated socket in Python](https://gist.github.com/kylemanna/d193aaa6b33a89f649524ad27ce47c4b)

    * [how-can-i-send-a-message-to-the-systemd-journal-from-the-command-line](https://serverfault.com/questions/573946/how-can-i-send-a-message-to-the-systemd-journal-from-the-command-line)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  8. @mbodo mbodo revised this gist Sep 23, 2019. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -165,6 +165,9 @@ Reference links:
    * [systemd.io] (https://systemd.io/)
    * [systemd-ignores-return-code-while-starting-service](https://serverfault.com/questions/751030/systemd-ignores-return-code-while-starting-service)
    * [how-do-i-override-or-configure-systemd-services](https://askubuntu.com/questions/659267/how-do-i-override-or-configure-systemd-services)
    * [creating-a-linux-service-with-systemd](https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6)
    * [An example network service with systemd-activated socket in Python](https://gist.github.com/kylemanna/d193aaa6b33a89f649524ad27ce47c4b)


    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  9. @mbodo mbodo revised this gist Sep 19, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -164,6 +164,7 @@ Reference links:
    * [creating-a-linux-service-with-systemd] (https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6)
    * [systemd.io] (https://systemd.io/)
    * [systemd-ignores-return-code-while-starting-service](https://serverfault.com/questions/751030/systemd-ignores-return-code-while-starting-service)
    * [how-do-i-override-or-configure-systemd-services](https://askubuntu.com/questions/659267/how-do-i-override-or-configure-systemd-services)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  10. @mbodo mbodo revised this gist Jul 17, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -135,7 +135,7 @@ ExecReload=/bin/kill -s HUP $MAINPID
    * [you-should-be-using-pidfile-and-mainpid-instead-of-pkill-1935e4531931](https://medium.com/@jbriggs_24705/you-should-be-using-pidfile-and-mainpid-instead-of-pkill-1935e4531931)
    * [https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStop=](https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStop=)

    List all services
    List all services with pattern
    ```
    <pattern> - httpd e.g
  11. @mbodo mbodo revised this gist Jul 17, 2019. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -135,6 +135,14 @@ ExecReload=/bin/kill -s HUP $MAINPID
    * [you-should-be-using-pidfile-and-mainpid-instead-of-pkill-1935e4531931](https://medium.com/@jbriggs_24705/you-should-be-using-pidfile-and-mainpid-instead-of-pkill-1935e4531931)
    * [https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStop=](https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStop=)

    List all services
    ```
    <pattern> - httpd e.g
    systemctl list-units -t service --full| cut -d' ' -f1 | grep <pattern> | while read s; do systemctl status $s; done
    ```
    > Link
    * [systemd-list-units-cuts-service-names](https://serverfault.com/questions/734130/systemd-list-units-cuts-service-names)

    Reference links:
    * [systemd.service man] (https://www.freedesktop.org/software/systemd/man/systemd.service.html)
  12. @mbodo mbodo revised this gist Jun 30, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -155,6 +155,7 @@ Reference links:
    * [python sdnotify library] (https://pypi.org/project/sdnotify/)
    * [creating-a-linux-service-with-systemd] (https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6)
    * [systemd.io] (https://systemd.io/)
    * [systemd-ignores-return-code-while-starting-service](https://serverfault.com/questions/751030/systemd-ignores-return-code-while-starting-service)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  13. @mbodo mbodo revised this gist May 27, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -154,6 +154,7 @@ Reference links:
    * [sd_notify python service notify implemetation] (https://github.com/bb4242/sdnotify)
    * [python sdnotify library] (https://pypi.org/project/sdnotify/)
    * [creating-a-linux-service-with-systemd] (https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6)
    * [systemd.io] (https://systemd.io/)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  14. @mbodo mbodo revised this gist May 21, 2019. 1 changed file with 3 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -124,19 +124,17 @@ Suppress non zero exit code (service after stop will be displayed as inactive, n
    [Service]
    SuccessExitStatus=143
    ```
    > Link:
    * [services-remain-in-failed-state-after-stopped-with-systemctl] (https://serverfault.com/questions/695849/services-remain-in-failed-state-after-stopped-with-systemctl)

    How to put PID of service as variable to service systemd file:
    ```shell

    ExecReload=/bin/kill -s HUP $MAINPID

    ```
    > Link
    * [you-should-be-using-pidfile-and-mainpid-instead-of-pkill-1935e4531931](https://medium.com/@jbriggs_24705/you-should-be-using-pidfile-and-mainpid-instead-of-pkill-1935e4531931)
    * [https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStop=](https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStop=)

    > Link:
    * [services-remain-in-failed-state-after-stopped-with-systemctl] (https://serverfault.com/questions/695849/services-remain-in-failed-state-after-stopped-with-systemctl)


    Reference links:
    * [systemd.service man] (https://www.freedesktop.org/software/systemd/man/systemd.service.html)
  15. @mbodo mbodo revised this gist May 21, 2019. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -124,6 +124,16 @@ Suppress non zero exit code (service after stop will be displayed as inactive, n
    [Service]
    SuccessExitStatus=143
    ```
    How to put PID of service as variable to service systemd file:
    ```shell

    ExecReload=/bin/kill -s HUP $MAINPID

    ```
    > Link
    * [you-should-be-using-pidfile-and-mainpid-instead-of-pkill-1935e4531931](https://medium.com/@jbriggs_24705/you-should-be-using-pidfile-and-mainpid-instead-of-pkill-1935e4531931)
    * [https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStop=](https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStop=)

    > Link:
    * [services-remain-in-failed-state-after-stopped-with-systemctl] (https://serverfault.com/questions/695849/services-remain-in-failed-state-after-stopped-with-systemctl)

  16. @mbodo mbodo revised this gist Mar 13, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -145,6 +145,7 @@ Reference links:
    * [sd_notify python watchdog implementation] (https://gist.github.com/Spindel/1d07533ef94a4589d348)
    * [sd_notify python service notify implemetation] (https://github.com/bb4242/sdnotify)
    * [python sdnotify library] (https://pypi.org/project/sdnotify/)
    * [creating-a-linux-service-with-systemd] (https://medium.com/@benmorel/creating-a-linux-service-with-systemd-611b5c8b91d6)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  17. @mbodo mbodo revised this gist Feb 27, 2019. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -142,6 +142,9 @@ Reference links:
    * [how-to-remove-systemd-services] (https://superuser.com/questions/513159/how-to-remove-systemd-services)
    * [systemd-containers-introduction-systemd-nspawn] (https://blog.selectel.com/systemd-containers-introduction-systemd-nspawn/)
    * [archlinux systemd-nspawn] (https://wiki.archlinux.org/index.php/systemd-nspawn)
    * [sd_notify python watchdog implementation] (https://gist.github.com/Spindel/1d07533ef94a4589d348)
    * [sd_notify python service notify implemetation] (https://github.com/bb4242/sdnotify)
    * [python sdnotify library] (https://pypi.org/project/sdnotify/)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  18. @mbodo mbodo revised this gist Feb 6, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -140,6 +140,8 @@ Reference links:
    * [controlling-a-multi-service-application-with-systemd] (http://alesnosek.com/blog/2016/12/04/controlling-a-multi-service-application-with-systemd/)
    * [rhel7-use-systemd-timers] (https://www.certdepot.net/rhel7-use-systemd-timers/)
    * [how-to-remove-systemd-services] (https://superuser.com/questions/513159/how-to-remove-systemd-services)
    * [systemd-containers-introduction-systemd-nspawn] (https://blog.selectel.com/systemd-containers-introduction-systemd-nspawn/)
    * [archlinux systemd-nspawn] (https://wiki.archlinux.org/index.php/systemd-nspawn)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  19. @mbodo mbodo revised this gist Feb 6, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -139,6 +139,7 @@ Reference links:
    * [Fedora - Packaging:Systemd] (https://fedoraproject.org/wiki/Packaging:Systemd)
    * [controlling-a-multi-service-application-with-systemd] (http://alesnosek.com/blog/2016/12/04/controlling-a-multi-service-application-with-systemd/)
    * [rhel7-use-systemd-timers] (https://www.certdepot.net/rhel7-use-systemd-timers/)
    * [how-to-remove-systemd-services] (https://superuser.com/questions/513159/how-to-remove-systemd-services)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  20. @mbodo mbodo revised this gist Feb 5, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -138,6 +138,7 @@ Reference links:
    * [trouble-creating-pid-file-in-systemd-service-script] (https://serverfault.com/questions/824543/trouble-creating-pid-file-in-systemd-service-script)
    * [Fedora - Packaging:Systemd] (https://fedoraproject.org/wiki/Packaging:Systemd)
    * [controlling-a-multi-service-application-with-systemd] (http://alesnosek.com/blog/2016/12/04/controlling-a-multi-service-application-with-systemd/)
    * [rhel7-use-systemd-timers] (https://www.certdepot.net/rhel7-use-systemd-timers/)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  21. @mbodo mbodo revised this gist Feb 4, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -137,6 +137,7 @@ Reference links:
    * [where-do-i-put-my-systemd-unit-file] (https://unix.stackexchange.com/questions/224992/where-do-i-put-my-systemd-unit-file)
    * [trouble-creating-pid-file-in-systemd-service-script] (https://serverfault.com/questions/824543/trouble-creating-pid-file-in-systemd-service-script)
    * [Fedora - Packaging:Systemd] (https://fedoraproject.org/wiki/Packaging:Systemd)
    * [controlling-a-multi-service-application-with-systemd] (http://alesnosek.com/blog/2016/12/04/controlling-a-multi-service-application-with-systemd/)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  22. @mbodo mbodo revised this gist Feb 1, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -136,6 +136,7 @@ Reference links:
    * [difference-between-systemd-and-terminal-starting-program] (https://unix.stackexchange.com/questions/339638/difference-between-systemd-and-terminal-starting-program/339645#339645)
    * [where-do-i-put-my-systemd-unit-file] (https://unix.stackexchange.com/questions/224992/where-do-i-put-my-systemd-unit-file)
    * [trouble-creating-pid-file-in-systemd-service-script] (https://serverfault.com/questions/824543/trouble-creating-pid-file-in-systemd-service-script)
    * [Fedora - Packaging:Systemd] (https://fedoraproject.org/wiki/Packaging:Systemd)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  23. @mbodo mbodo revised this gist Jan 30, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -135,6 +135,7 @@ Reference links:
    * [Red Hat RHEL 7 systemd documentation] (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html)
    * [difference-between-systemd-and-terminal-starting-program] (https://unix.stackexchange.com/questions/339638/difference-between-systemd-and-terminal-starting-program/339645#339645)
    * [where-do-i-put-my-systemd-unit-file] (https://unix.stackexchange.com/questions/224992/where-do-i-put-my-systemd-unit-file)
    * [trouble-creating-pid-file-in-systemd-service-script] (https://serverfault.com/questions/824543/trouble-creating-pid-file-in-systemd-service-script)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  24. @mbodo mbodo revised this gist Nov 5, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -129,6 +129,7 @@ SuccessExitStatus=143


    Reference links:
    * [systemd.service man] (https://www.freedesktop.org/software/systemd/man/systemd.service.html)
    * [Useful SystemD commands] (http://www.dynacont.net/documentation/linux/Useful\_SystemD\_commands/)
    * [Archlinux systemd wiki] (https://wiki.archlinux.org/index.php/Systemd)
    * [Red Hat RHEL 7 systemd documentation] (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html)
  25. @mbodo mbodo revised this gist Sep 20, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -133,6 +133,7 @@ Reference links:
    * [Archlinux systemd wiki] (https://wiki.archlinux.org/index.php/Systemd)
    * [Red Hat RHEL 7 systemd documentation] (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html)
    * [difference-between-systemd-and-terminal-starting-program] (https://unix.stackexchange.com/questions/339638/difference-between-systemd-and-terminal-starting-program/339645#339645)
    * [where-do-i-put-my-systemd-unit-file] (https://unix.stackexchange.com/questions/224992/where-do-i-put-my-systemd-unit-file)

    Pid Eins:
    * [systemd-for-admins-I] (http://0pointer.net/blog/projects/systemd-for-admins-1.html)
  26. @mbodo mbodo revised this gist Sep 2, 2018. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -130,7 +130,6 @@ SuccessExitStatus=143

    Reference links:
    * [Useful SystemD commands] (http://www.dynacont.net/documentation/linux/Useful\_SystemD\_commands/)
    * [How-to-use-systemctl-to-manage-systemd-services-and-units] (https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units)
    * [Archlinux systemd wiki] (https://wiki.archlinux.org/index.php/Systemd)
    * [Red Hat RHEL 7 systemd documentation] (https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/chap-Managing_Services_with_systemd.html)
    * [difference-between-systemd-and-terminal-starting-program] (https://unix.stackexchange.com/questions/339638/difference-between-systemd-and-terminal-starting-program/339645#339645)
    @@ -158,4 +157,6 @@ Pid Eins:
    * [systemd-for-admins-XX] (http://0pointer.net/blog/projects/socket-activated-containers.html)

    Digital Ocean:
    * [understanding-systemd-units-and-unit-files] https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files
    * [systemd-essentials-working-with-services-units-and-the-journal] (https://www.digitalocean.com/community/tutorials/systemd-essentials-working-with-services-units-and-the-journal)
    * [How-to-use-systemctl-to-manage-systemd-services-and-units] (https://www.digitalocean.com/community/tutorials/how-to-use-systemctl-to-manage-systemd-services-and-units)
    * [Understanding-systemd-units-and-unit-files] https://www.digitalocean.com/community/tutorials/understanding-systemd-units-and-unit-files
  27. @mbodo mbodo revised this gist Aug 29, 2018. 1 changed file with 3 additions and 4 deletions.
    7 changes: 3 additions & 4 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -120,14 +120,13 @@ ExecReload=/etc/rc.d/init.d/network reload
    ```

    Suppress non zero exit code (service after stop will be displayed as inactive, not failed):

    > Link:
    * [services-remain-in-failed-state-after-stopped-with-systemctl] (https://serverfault.com/questions/695849/services-remain-in-failed-state-after-stopped-with-systemctl)

    ```shell
    [Service]
    SuccessExitStatus=143
    ```
    > Link:
    * [services-remain-in-failed-state-after-stopped-with-systemctl] (https://serverfault.com/questions/695849/services-remain-in-failed-state-after-stopped-with-systemctl)


    Reference links:
    * [Useful SystemD commands] (http://www.dynacont.net/documentation/linux/Useful\_SystemD\_commands/)
  28. @mbodo mbodo revised this gist Aug 29, 2018. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -118,10 +118,11 @@ ExecStart=/etc/rc.d/init.d/network start
    ExecStop=/etc/rc.d/init.d/network stop
    ExecReload=/etc/rc.d/init.d/network reload
    ```

    Suppress non zero exit code (service after stop will be displayed as inactive, not failed):

    Link:
    * [services-remain-in-failed-state-after-stopped-with-systemctl] (https://serverfault.com/questions/695849/services-remain-in-failed-state-after-stopped-with-systemctl)
    > Link:
    * [services-remain-in-failed-state-after-stopped-with-systemctl] (https://serverfault.com/questions/695849/services-remain-in-failed-state-after-stopped-with-systemctl)

    ```shell
    [Service]
  29. @mbodo mbodo revised this gist Aug 29, 2018. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -119,12 +119,14 @@ ExecStop=/etc/rc.d/init.d/network stop
    ExecReload=/etc/rc.d/init.d/network reload
    ```
    Suppress non zero exit code (service after stop will be displayed as inactive, not failed):

    Link:
    * [services-remain-in-failed-state-after-stopped-with-systemctl] (https://serverfault.com/questions/695849/services-remain-in-failed-state-after-stopped-with-systemctl)

    ```shell
    [Service]
    SuccessExitStatus=143
    ```
    Link:
    * [services-remain-in-failed-state-after-stopped-with-systemctl] (https://serverfault.com/questions/695849/services-remain-in-failed-state-after-stopped-with-systemctl)

    Reference links:
    * [Useful SystemD commands] (http://www.dynacont.net/documentation/linux/Useful\_SystemD\_commands/)
  30. @mbodo mbodo revised this gist Aug 29, 2018. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions Linux - Systemd cheatsheet.md
    Original file line number Diff line number Diff line change
    @@ -118,6 +118,13 @@ ExecStart=/etc/rc.d/init.d/network start
    ExecStop=/etc/rc.d/init.d/network stop
    ExecReload=/etc/rc.d/init.d/network reload
    ```
    Suppress non zero exit code (service after stop will be displayed as inactive, not failed):
    ```shell
    [Service]
    SuccessExitStatus=143
    ```
    Link:
    * [services-remain-in-failed-state-after-stopped-with-systemctl] (https://serverfault.com/questions/695849/services-remain-in-failed-state-after-stopped-with-systemctl)

    Reference links:
    * [Useful SystemD commands] (http://www.dynacont.net/documentation/linux/Useful\_SystemD\_commands/)