start daemon as domain user
Hello,
My linux box (Ubuntu 8.10) is located in corporate network and joined to Windows Domain. In order to get internet access I need to be login as domain user (user name: linux). I'm trying to start "shell-fm" program (in daemon mode) to play music off the last.fm website.
I'm able to login to "linux" account and get shell-fm going, but i would like it to start automatically and place it in update-rc.d.
I've found this daemon script, and modified:
#!/bin/sh
#
PREFIX=/usr
case "$1" in
(start)
echo "Starting lastfm player (shell-fm)"
start-stop-daemon -c linux -d /home/DOMAIN/linux --quiet --start --exec $PREFIX/bin/shell-fm -- -d
;;
(stop)
echo "Stopping lastfm player (shell-fm)"
start-stop-daemon --stop --quiet --exec $PREFIX/bin/shell-fm >/dev/null
;;
(restart)
$0 stop
$0 start
;;
(*)
echo $0 "start|stop|restart"
exit 1
;;
esac
exit 0
Unfortunately, shell-fm starts correctly but shows no access to the internet.
Please let me know if there is a different way to start a program in daemon mode as a DOMAIN user.
Thank you
jatrn
|