Systemd can't start script?
Posted
by
TokyoMEWS
on Super User
See other posts from Super User
or by TokyoMEWS
Published on 2012-09-13T14:01:46Z
Indexed on
2012/09/13
15:41 UTC
Read the original article
Hit count: 285
systemd
I have a BASH-script I want to run on start up. My system is running systemd so I created a .service file with whith what I think is the neccessary information:
[Unit]
Description=My Script
After=network.target
[Service]
ExecStart=/home/myscript.sh
[Install]
WantedBy=multi-user.target
I used systemctl enable to 'register' it an rebooted. On boot I was told my script would be executed, but I could neither see any of the messages ECHO should display on screen nor did it write something to a file, according to what I had written in the script. Additionally, It does not start the application it's supposed to start.
Systemctl status tells me that the script has run and exited successfully. Still, the script has no effect. If I run the script from a shell it works perfectly fine.
Do any of you know what could be my problem?
© Super User or respective owner