Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Sep 21st, 2018 63 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. [Unit]
  2. Description=myapp
  3.  
  4. [Service]
  5. Type=simple
  6. Restart=always
  7. RestartSec=30
  8. WorkingDirectory= /home/go/src/myapp
  9. ExecStart=/home/go/src/myapp/myapp  
  10.  
  11. # myapp.log owned by syslog
  12. PermissionsStartOnly=true
  13. ExecStartPre=/bin/mkdir -p /var/log/myapp
  14. ExecStartPre=/bin/chown syslog:adm /var/log/myapp
  15. ExecStartPre=/bin/chmod 755 /var/log/myapp
  16. StandardOutput=syslog
  17. StandardError=syslog
  18. SyslogIdentifier=myapp                          
  19.  
  20. [Install]
  21. WantedBy=multi-user.target
  22.    
  23. if $programname == 'myapp' then /var/log/myapp/myapp.log
  24. & stop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top