start-stop-daemon refuses to run as certain user
start-stop-daemon (from latest potato) refuses to start MiniVend
as user minivend. Any hints ?
gundel:~# /etc/init.d/minivend start
Starting minivend: The Minivend server must not be run as root.
minivend.
#! /bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/minivend
NAME=minivend
DESC=minivend
USERNAME=minivend
test -f $DAEMON || exit 0
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid \
--user $USERNAME --exec $DAEMON -- -f /etc/minivend/minivend.cfg
echo "$NAME."
;;
[..]
Ciao
Racke
--
LinuXia Systems, eCommerce and more => http://www.linuxia.de/ or 0511-3941290.
Unsere Partner: Cobolt NetServices (http://www.cobolt.ch), CAPCON Systemhouse
(http://www.capcon-systemhouse.com), ecoservice gmbh (http://www.ecoservice.de)
Unser Fokus liegt auf Open-Source-Software (MiniVend, Debian GNU/Linux, etc.)
Reply to: