- Linux help – running a service at startup
I’m trying to get a service to run at startup on SUSE 11.4 and it’s having none of it.
I’ve added the line “/sbin/service nameserv start” to the boot.local file in init.d but nothing happens. I can use the same command as root in a terminal window once I’m logged on, so I’m obviously doing something wrong. I thought that at startup, stuff in boot.local was run as root?Posted 6 years ago
Thanks for your help.
If I use chkconfig –list | grep nameserv I get:
nameserv 0:off 1:off 2:off 3:on 4:off 5:on 6:off
However, the application that relies on nameserv fails to work. It only works if I then enter /sbin/service nameserv start in a terminal.
I’m now really confused 😕Posted 6 years agograhambMember
What runlevel is the server running at ?. If it’s at 2 or 4 then the service won’t get started. “chkconfig –level 2345 nameserv on” will enable it for 2-5.
Edit: using “chkconfig nameserv on” will just enable it for whatever the default levels are defined in the init script.Posted 6 years ago
I’ve found this in the boot.msg in /var/logs
service nameserv done
Starting Corba Nameserver:
<notice — Jan 6 11:17:47.581778000> startproc: execve (/usr/bin/vmtoolsd) [ /usr/bin/vmtoolsd ], [ CONSOLE=/dev/console ROOTFS_FSTYPE=ext4 SHELL=/bin/sh TERM=linux
ROOTFS_FSCK=0 LC_ALL=POSIX INIT_VERSION=sysvinit-2.88 REDIRECT=/dev/tty7 COLUMNS=240 PATH=/bin:/sbin:/usr/bin:/usr/sbin vga=0x34d RUNLEVEL=5 PWD=/
SPLASHCFG= PREVLEVEL=4 LINES=67 HOME=/
SHLVL=2 splash=silent SPLASH=no ROOTFS_BLKDEV=/dev/disk/by-id/ata-ST3250312AS_9VYD6Z3R-part2
_=/sbin/startproc DAEMON=/usr/bin/vmtoolsd ]
<notice — Jan 6 11:17:47.591888000>
which makes absolutely no sense to me! 🙂Posted 6 years ago
The topic ‘Linux help – running a service at startup’ is closed to new replies.