[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

At startup



Hello!
I followed instructions on this page:
[http://www.linuxgazette.com/issue27/kaszeta.html]
so I had to copy file xterm to /etc/init.d/ and run 'update-rc.d xterm
defaults 99'.
So next time it shuld connext to XDM server at boot time.
But it didn't.
At startup it wrote this:
/etc/init.d/rc: /etc/rc2.d/S99xterm: Permision denied
And then prompt
Login:
Here is what is writen in xterm file:

---->>>

#! /bin/sh
# skeleton      example file to build /etc/init.d/ scripts.
#               This file should be used to construct scripts for
/etc/init.d.
#
#               Written by Miquel van Smoorenburg <miquels@cistron.nl>.
#               Modified for Debian GNU/Linux
#               by Ian Murdock <imurdock@gnu.ai.mit.edu>.
#
# Version:      @(#)skeleton  1.6  11-Nov-1996  miquels@cistron.nl
#
set -e

case "$1" in
  start)
    start-stop-daemon --start --verbose --pidfile /var/run/xterm.pid
--exec /usr/bin/X11/X -- -quiet -query rayleigh &
    ;;
  stop)
    start-stop-daemon --stop --verbose --pidfile /var/run/xterm.pid
--exec /usr/bin/X11/X
    ;;
  reload)
    # echo "Reloading $NAME configuration files"
    # start-stop-daemon --stop --signal 1 --quiet --pidfile
/var/run/$NAME.pid --exec $DAEMON
    ;;
  *)
    # echo "Usage: /etc/init.d/$NAME {start|stop|reload}"
    echo "Usage: /etc/init.d/xterm {start|stop}"
    exit 1
    ;;
esac

exit 0

<<<<------
So, why is permision denied? I copied it by root.
Thank you!
Bye,



AleS



Reply to: