I'm trying to start some software (VLC) when my Debian server boots up. I did try several ways I found in different sources (changing
/etc/rc.local, creating a script in
/etc/init.d/ and adding it with
rcconf) but in the end after a reboot, I never see the VLC process running.
So my question is :
- did I do anything wrong in the startup script (shown below)?
rcconfdisplays a star in front of the file name so I assume the script has been linked to the correct runlevels ?
- is there any way to see if an error occured while the system tried to start VLC? I looked into different
/var/log/files without any luck...
The startup script :
#! /bin/sh case "$1" in start) su - shtong -c "vlc -I http --http-album-art --http-host=0.0.0.0:8000 --no-playlist-autostart --configlcrc ~/default.xspf" exit 0; ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop) ;; *) echo "Usage: $0 start|stop" >&2 exit 3 ;; esac