implement proper logging for services
This commit is contained in:
@@ -2,4 +2,6 @@
|
||||
Description=Simple Execution Demo
|
||||
|
||||
[Service]
|
||||
ExecStart=/bin/ls
|
||||
ExecStart=/bin/cat /etc/hosts
|
||||
Type=simple
|
||||
Output=syslog
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
Description=systemd Logging Socket
|
||||
|
||||
[Socket]
|
||||
ExecStartPre=/bin/rm /tmp/systemd-logger
|
||||
ExecStartPre=/bin/rm -f /tmp/systemd-logger
|
||||
ListenStream==/systemd/logger
|
||||
ListenStream=/tmp/systemd-logger
|
||||
|
||||
Reference in New Issue
Block a user