Tag Info

Hot answers tagged

8

The prerm of uwsgi script contains this: #!/bin/sh set -e # Automatically added by dh_installinit if [ -x "/etc/init.d/uwsgi" ] || [ -e "/etc/init/uwsgi.conf" ]; then invoke-rc.d uwsgi stop || exit $? fi # End automatically added section You have a few options: Edit the prerm script. The script is usually located at /var/lib/dpkg/uwsgi.prerm. Do: ...


2

According to upstart cookbook. Ubuntu currently employs a hybrid system where core services are handled by Upstart, but additional services can be run in the legacy SystemV mode. All upstart system jobs by default live in /etc/init/ while session job can be found in: $XDG_CONFIG_HOME/upstart/ (or $HOME/.config/upstart/ if $XDG_CONFIG_HOME not set). ...


1

Finally we found that sickbeard start at boot, but fails. In /var/log/boot.log we can see this error: Starting SickBeard /usr/bin/python: can't open file 'SickBeard.py': [Errno 2] No such file or directory and looking at sickbeard init script: APP_PATH=${SB_HOME-/opt/sickbeard} for some reason we do not know, when sickbeard start, /opt is not ready. ...


1

I guess that cups service is an upstart job that run /etc/init.d/cups script. Check if is present /etc/init/cups.conf and if it exec /etc/init.d/cups. Regarding the removal of links in rcX.d you should remove your script in /ect/init.d before you run update-rc.d command, indeed according to update-rc.d manual: When invoked with the remove option, ...


1

I think the functions you are looking for are sourced from /lib/lsb/init-functions, and named log_success_msg and log_failure_msg: $ . /lib/lsb/init-functions $ log_success_msg foo * foo $ log_failure_msg foo * foo In this output, the first * is grey, the second is red (error case). Not extremely colorful, just enoug to get the point across... From ...


1

You could use the functions provided by the lsb-base package in /lib/lsb/init-functions. I have seen init.d scripts sourcing that file and then using the functions within, such as log_end_msg: $ (. /lib/lsb/init-functions; log_end_msg 1) ...fail! $ (. /lib/lsb/init-functions; log_end_msg 0) ...done. For example, a snippet from /etc/init.d/ssh (case ...


1

You can do this: start on startup stop on runlevel [016] instance $PARM1/$PARM2/$PARM3 setuid BLARG respawn exec ${UPSTART_INSTANCE}.sh


1

Per default samba active directory and domain controller service will be started in addition to smbd and nmbd. For a standalone server this is not neccesary. Just set the service to manual startup to get rid of the [fail] message with the following statement as root: echo manual | tee /etc/init/samba-ad-dc.override


1

You could just keep the package installed until shutdown. That will accomplish relatively the same thing. Do this by running this command as root: echo "sudo apt-get remove uwsgi" > /etc/rc6.d/K99_script followed by: chmod +x K99_script When you shutdown, the package will automagically be uninstalled. Note, though, that after your system comes ...



Only top voted, non community-wiki answers of a minimum length are eligible