Hi Stoyan,Not sure if it is the same problem as you're having, but I had a similar symptom when using the default 'debian-backuppc' init script on Ubuntu 14.04; I am using BackupPC 4.0.0a3.
By default the directory where the pid file is stored (/var/run/BackupPC) doesn't exist. The attached file shows my diff to the init script. The script in 3.3.0 may need the same or similar changes.
Hth, Stephen On Mon, 11 May 2015, Stoyan Stoyanov wrote:
Hello, After upgrading from Ubuntu 12.04 (backuppc 3.2.1-2ubuntu1.1) to Ubuntu 14.04 (backuppc 3.3.0-1ubuntu1), BackupPC no longer starts in daemon mode. It runs fine in foreground though. I tried with a fresh server install and still the same thing. The child dies immediately after being forked and exits when the parent process exits. Here's what it looks like if I add "sleep 60;" right after forking the child process and before the parent exiting "exit if ($pid);" backuppc 16074 15421 0 15:55 pts/30 00:00:00 /usr/bin/perl -w /usr/share/backuppc/bin/BackupPC -d backuppc 16076 16074 0 15:55 pts/30 00:00:00 [BackupPC] <defunct> Same piece of code works fine if extracted and used by itself. Is there anyone running BackupPC on Ubuntu 14.04 having the same problem? Thanks, Stoyan
--- /opt/src/backuppc_build/BackupPC-4.0.0alpha3/init.d/debian-backuppc 2015-04-09 16:02:53.759115841 -0400 +++ ./BackupPC 2015-05-12 08:33:13.816060131 -0400 @@ -24,7 +24,9 @@ BINDIR=/opt/BackupPC/bin DATADIR=/srv/BackupPC LOGDIR=/var/log/BackupPC +RUNDIR=/var/run/BackupPC USER=backuppc +GROUP=backuppc # NAME=backuppc DAEMON=BackupPC @@ -34,27 +36,31 @@ case "$1" in start) echo -n "Starting $NAME: " - start-stop-daemon --start --pidfile $LOGDIR/BackupPC.pid \ + if [ ! -d ${RUNDIR} ]; then + mkdir ${RUNDIR} + chown ${USER}:${GROUP} ${RUNDIR} + fi + start-stop-daemon --start --pidfile $RUNDIR/BackupPC.pid \ -c $USER --exec $BINDIR/$DAEMON -- -d echo "ok." ;; stop) echo -n "Stopping $NAME: " - start-stop-daemon --stop --pidfile $LOGDIR/BackupPC.pid -u $USER \ + start-stop-daemon --stop --pidfile $RUNDIR/BackupPC.pid -u $USER \ --oknodo --retry 30 -x /usr/bin/perl echo "ok." ;; restart) echo -n "Restarting $NAME: " - start-stop-daemon --stop --pidfile $LOGDIR/BackupPC.pid -u $USER \ + start-stop-daemon --stop --pidfile $RUNDIR/BackupPC.pid -u $USER \ --oknodo --retry 30 -x /usr/bin/perl - start-stop-daemon --start --pidfile $LOGDIR/BackupPC.pid \ + start-stop-daemon --start --pidfile $RUNDIR/BackupPC.pid \ -c $USER --exec $BINDIR/$DAEMON -- -d echo "ok." ;; reload|force-reload) echo "Reloading $NAME configuration files" - start-stop-daemon --stop --pidfile $LOGDIR/BackupPC.pid \ + start-stop-daemon --stop --pidfile $RUNDIR/BackupPC.pid \ --signal 1 -x /usr/bin/perl ;; *)
------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/