Guest User

Untitled

a guest
Oct 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. [Unit]
  2. Description=Autostart
  3. After=multi-user.target
  4.  
  5. [Service]
  6. Environment=LD_LIBRARY_PATH=/home/pi/bin
  7. ExecStart=/home/pi/bin/Server
  8. Restart=on-failure
  9. RestartSec=3
  10. User=root
  11. Group=root
  12.  
  13. [Install]
  14. WantedBy=multi-user.target
  15.  
  16. ● autostart.service - Autostart
  17. Loaded: loaded (/lib/systemd/system/autostart.service; enabled; vendor preset: enabled)
  18. Active: inactive (dead)
  19.  
  20. ● autostart.service - Autostart
  21. Loaded: loaded (/lib/systemd/system/autostart.service; enabled; vendor preset: enabled)
  22. Active: active (running) since Fri 2017-10-20 12:06:39 CEST; 2min 32s ago
  23. Main PID: 1189 (Server)
  24. CGroup: /system.slice/autostart.service
  25. ├─1189 /home/pi/bin/Server
  26. └─1198 /home/pi/bin/Client
  27.  
  28. Oct 20 12:06:40 localhost Server[1189]: some output from my application
Add Comment
Please, Sign In to add comment