connmand should either write a proper --pidfile after forking or not
use the --pidfile option in the initscript at all. This patch fixes
initscript to do the latter. If you rather want connmand to write
pidfile let me know.

--- .pc/fix_ubuntu_init_script.patch/scripts/connman.in 2009-02-10 
11:35:12.000000000 +0100
+++ scripts/connman.in  2009-02-10 11:41:55.000000000 +0100
@@ -9,22 +9,22 @@ DESC="Connection Manager"
 if [ -f @sysconfdir@/default/connman ] ; then
        . @sysconfdir@/default/connman
 fi
 
 set -e
 
 do_start() {
        start-stop-daemon --start --oknodo \
-               --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_OPTS
+               --exec $DAEMON -- $DAEMON_OPTS
 }
 
 do_stop() {
        start-stop-daemon --stop --oknodo --quiet \
-               --pidfile $PIDFILE --exec $DAEMON
+               --exec $DAEMON
 }
 
 case "$1" in
   start)
        log_daemon_msg "Starting $DESC"
        do_start
        log_end_msg $?
        ;;


 - Alexander

_______________________________________________
connman mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/connman

Reply via email to