#! /bin/sh # Written by chopeen # # Based on SeeSchloss' museek & mulog init.d scripts for Gentoo # <http://seeschloss.org/museek/> MUSEEKD_USER=foobar MUSEEKD_CONFIG=/home/foobar/.museekd/config.xml MUSEEKD_PATH=/usr/local/bin case "$1" in start) echo "Starting museekd as user $MUSEEKD_USER" start-stop-daemon --start --quiet --exec $MUSEEKD_PATH/museekd \ --chuid $MUSEEKD_USER --background --pidfile /var/run/museekd.pid \ --make-pidfile -- -c $MUSEEKD_CONFIG ;; stop) echo "Stopping museekd" start-stop-daemon --stop --quiet --pidfile /var/run/museekd.pid ;; esac exit 0
2005/12/11
A basic museekd init.d script for Ubuntu
You should change the values of MUSEEKD_USER and MUSEEKD_CONFIG variables so they fit your system.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment