parent
2668eab398
commit
e81ab81be2
@ -1,10 +1,14 @@
|
||||
[Unit]
|
||||
Description=My last command
|
||||
After=multi-user.target
|
||||
Description=My service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/home/pi/CubeSatSim/demo.sh > /home/pi/CubeSatSim/log.txt 2>&1
|
||||
|
||||
WorkingDirectory=/home/pi/CubeSatSim
|
||||
StandardOutput=inherit
|
||||
StandardError=inherit
|
||||
Restart=always
|
||||
User=pi
|
||||
|
||||
[Install]
|
||||
WantedBy=custom.target
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Loading…
Reference in new issue