[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: MySecureShell 2.0-2 new version



Le 11/28/2014 11:56 PM, Niels Thykier a écrit :
> On 2014-11-28 22:27, Pierre Mavro wrote:
>> Hi,
>>
>> I've uploaded a new package which have been approved in the unstable
>> release. I would like it to go into Jessie as it fixes a small issue on
>> the init script.
>> The problem was on the restart service and not on the start and stop.
>> I've refactorized everything to call the same functions.
>>
>> Can you please allow this new version in Jessie ?
>>
>> Thanks
>>
>>
> Hi,
>
> Please file an unblock request with the source debdiff attached.  We do
> not have capacity to track mail requests, sorry.
>
> ~Niels
>
>
Hi,

Please find attached the requested debdiff. Please let me know if
something is missing.

Thanks a lot
diff -Nru mysecureshell-2.0/debian/changelog mysecureshell-2.0/debian/changelog
--- mysecureshell-2.0/debian/changelog	2014-11-08 19:42:14.000000000 +0000
+++ mysecureshell-2.0/debian/changelog	2014-11-25 18:08:34.000000000 +0000
@@ -1,3 +1,9 @@
+mysecureshell (2.0-2) unstable; urgency=low
+
+  * Fixing init script (Closes: #769130)
+
+ -- Pierre Mavro <pierre@mavro.fr>  Tue, 11 Nov 2014 16:27:42 +0000
+
 mysecureshell (2.0-1) unstable; urgency=low
 
     * Initial release (Closes: #763930)
diff -Nru mysecureshell-2.0/debian/patches/init.d.patch mysecureshell-2.0/debian/patches/init.d.patch
--- mysecureshell-2.0/debian/patches/init.d.patch	1970-01-01 00:00:00.000000000 +0000
+++ mysecureshell-2.0/debian/patches/init.d.patch	2014-11-25 18:08:34.000000000 +0000
@@ -0,0 +1,52 @@
+--- init.d.old	2014-11-11 17:24:12.024939257 +0100
++++ init.d	2014-11-11 17:24:27.545546542 +0100
+@@ -36,11 +36,7 @@
+ # and status_of_proc is working.
+ . /lib/lsb/init-functions
+ 
+-#
+-# Function that starts the daemon/service
+-#
+-case "$1" in
+-  start)
++do_start () {
+     echo -n "Starting $DESC: "
+     sftp-state start > /dev/null
+     if [ $(stat --format='%a' $DAEMON) -eq 755 ] ; then
+@@ -49,19 +45,29 @@
+     else
+         echo "$NAME is now online with full features"
+     fi
+-    ;;
+-  stop)
++}
++
++do_stop () {
+     echo -n "Stopping $DESC: "
+     sftp-state fullstop -yes > /dev/null
+     echo "$NAME is now offline"
++}
++
++#
++# Function that starts the daemon/service
++#
++case "$1" in
++  start)
++    do_start
++    ;;
++  stop)
++    do_stop
+     ;;
+   restart|force-reload)
+-    echo -n "Restarting $DESC: "
+-    sftp-state fullstop -yes > /dev/null
++    do_stop
+     echo "$NAME is now offline --> please wait while restarting..."
+     sleep 1
+-    sftp-state start > /dev/null
+-    echo "$NAME is now online"
++    do_start
+     ;;
+   status)
+     sftp-state
+

Reply to: