Skip to content

Commit

Permalink
prepare 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Wahl committed Jul 29, 2013
1 parent 1b91d8a commit 897bf54
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 3 additions & 1 deletion etc/init.d/dhcpy6d
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ DHCPY6DCONF=/etc/dhcpy6d.conf
DHCPY6DPID=/var/run/dhcpy6d.pid
NAME="dhcpy6d"
DESC="dhcpy6d DHCPv6 server"
USER=dhcpy6d
GROUP=dhcpy6d

RUN=no
DEFAULTFILE=/etc/default/dhcpy6d
Expand Down Expand Up @@ -57,7 +59,7 @@ fi
if ! check_status; then

start-stop-daemon --start --make-pidfile --pidfile ${DHCPY6DPID} \
--background --oknodo --exec $DHCPY6DBIN -- --config $DHCPY6DCONF --user dhcpy6d --group dhcpy6d
--background --oknodo --exec $DHCPY6DBIN -- --config $DHCPY6DCONF --user $USER --group $GROUP

sleep 2
if check_status -q; then
Expand Down
7 changes: 4 additions & 3 deletions installer/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
dhcpy6d (0.3git-1) unstable; urgency=low
dhcpy6d (0.3) unstable; urgency=low

* New upstream
- running as non-root user/group dhcpy6d
- deb improvements
- rpm improvements
- running as non-root user dhcpy6d

-- Henri Wahl <[email protected]> Mon, 10 Jun 2013 11:47:00 +0200
-- Henri Wahl <[email protected]> Mon, 29 Jul 2013 13:14:00 +0200


dhcpy6d (0.2-1) unstable; urgency=low
Expand Down
4 changes: 3 additions & 1 deletion installer/redhat/init.d/dhcpy6d
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ exec=/usr/sbin/dhcpy6d
lockfile=/var/lock/subsys/dhcpy6d
pidfile=/var/run/dhcpy6d.pid
config=/etc/dhcpy6d.conf
user=dhcpy6d
group=dhcpy6d

rh_status() {
status -p $pidfile -l $(basename $lockfile) $exec
Expand All @@ -45,7 +47,7 @@ start() {
rh_status_q && return 0

echo -n $"Starting $prog: "
$exec --config $config --user dhcpy6d --group dhcpy6d &
$exec --config $config --user $user --group $group &
RETVAL=$?
pid=$!
echo $pid > $pidfile
Expand Down

0 comments on commit 897bf54

Please sign in to comment.