From 21ce819a15c3a17a5350d9d493537980791df3d4 Mon Sep 17 00:00:00 2001 From: JSurf Date: Thu, 19 Jun 2014 13:49:05 +0200 Subject: [PATCH] Add init script for hmland --- debian/control | 10 +++++----- debian/{init.d.ex => hmland.init} | 14 +++++++------- debian/rules | 3 +++ 3 files changed, 15 insertions(+), 12 deletions(-) rename debian/{init.d.ex => hmland.init} (90%) diff --git a/debian/control b/debian/control index b2e7f87..0bd2041 100644 --- a/debian/control +++ b/debian/control @@ -1,12 +1,12 @@ Source: hmcfgusb Section: unknown Priority: extra -Maintainer: root -Build-Depends: debhelper (>= 8.0.0) +Maintainer: JSurf +Build-Depends: debhelper (>= 8.0.0), libusb-1.0-0-dev Standards-Version: 3.9.2 -Homepage: -#Vcs-Git: git://git.debian.org/collab-maint/hmcfgusb.git -#Vcs-Browser: http://git.debian.org/?p=collab-maint/hmcfgusb.git;a=summary +Homepage: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/hmcfgusb +#Vcs-Git: https://github.com/JSUrf/hmcfgusb.git +#Vcs-Browser: https://github.com/JSurf/hmcfgusb Package: hmcfgusb Architecture: any diff --git a/debian/init.d.ex b/debian/hmland.init similarity index 90% rename from debian/init.d.ex rename to debian/hmland.init index 5de45af..7f8f6d3 100644 --- a/debian/init.d.ex +++ b/debian/hmland.init @@ -1,8 +1,8 @@ #!/bin/sh ### BEGIN INIT INFO -# Provides: hmcfgusb -# Required-Start: $network $local_fs -# Required-Stop: +# Provides: hmland +# Required-Start: $network $local_fs $remote_fs +# Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: @@ -15,10 +15,10 @@ # PATH should only include /usr/* if it runs after the mountnfs.sh script PATH=/sbin:/usr/sbin:/bin:/usr/bin -DESC=hmcfgusb # Introduce a short description here -NAME=hmcfgusb # Introduce the short server's name here -DAEMON=/usr/sbin/hmcfgusb # Introduce the server's location here -DAEMON_ARGS="" # Arguments to run the daemon with +DESC="Homematic LAN Adapter service" # Introduce a short description here +NAME=hmland # Introduce the short server's name here +DAEMON=/opt/hm/hmcfgusb/$NAME # Introduce the server's location here +DAEMON_ARGS="-r 03:30 -d -P -p 1000" # Arguments to run the daemon with PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME diff --git a/debian/rules b/debian/rules index b760bee..4d5943c 100755 --- a/debian/rules +++ b/debian/rules @@ -11,3 +11,6 @@ %: dh $@ + +override_dh_installinit: + dh_installinit --name=hmland \ No newline at end of file -- 2.39.2