BackupPC-users

Re: [BackupPC-users] BackupPC fails to start in daemon mode on Ubuntu 14.04

2015-05-12 18:39:37
Subject: Re: [BackupPC-users] BackupPC fails to start in daemon mode on Ubuntu 14.04
From: Stephen <stephen AT physics.unc DOT edu>
To: Stoyan Stoyanov <stoyansbg AT gmail DOT com>
Date: Tue, 12 May 2015 18:37:37 -0400
What's the value of $Conf{RunDir} in your config.pl? /var/run/backuppc ?

On Tue, 12 May 2015, Stoyan Stoyanov wrote:

Thank you for your reply, Steven, but the init script doesn't seem to be the 
problem in this case. At this point, I'm invoking the
BackupPC executable manually with the "-d" option and not creating a PID file. 
The init script though that comes with the Ubuntu
package seems to do the right thing:

if [ ! -d /var/run/backuppc ]; then
    mkdir /var/run/backuppc
    chown backuppc:backuppc /var/run/backuppc
fi
...
start-stop-daemon --start --pidfile /var/run/backuppc/BackupPC.pid ...

Any other ideas?

Thanks,
Stoyan


On Tue, May 12, 2015 at 7:11 AM, Stephen <stephen AT physics.unc DOT edu> wrote:
      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



------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/