Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513850 - app-backup/backuppc - add systemd support
Summary: app-backup/backuppc - add systemd support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: App-Backup Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2014-06-19 12:36 UTC by thorus90
Modified: 2014-12-02 10:35 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thorus90 2014-06-19 12:36:28 UTC
Please provide systemd service files for backuppc. There are 2 init files for openrc at the moment. backuppc for the daemon itself and apache2-backuppc for the webgui of backuppc.

For backuppc itself I simply copied the one from fedora, it worked fine:

[Unit]
Description= BackupPC server daemon.
After=syslog.target 

[Service]
Type=oneshot
User=backuppc
Group=backuppc
ExecStart=/usr/bin/BackupPC -d
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

But copying the one from apache2 and adjusting it for Backuppc didn't work. I always got 

no listening sockets available, shutting down
Unable to open logs

But there was only 1 Listen directive in /etc/Backuppc/httpd.conf.

So I ended up adjusting the apache for backuppc by changing user and group (I only use this apache for backuppc), copying the necessary parts from /etc/Backuppc/httpd.conf to /etc/apache/mods.d/90_backuppc.conf and adjusting the APACHE_OPTS.

Don't if you still want to seperate the webgui from apache or simply integrate it, with i.e. suexec so this vhost gets executed as user backuppc, or ptovide a working systemd service as I couldn't get it working.

Thanks!

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2014-07-01 17:00:46 UTC
Where are you trying to get that apache unit file? Looks like Fedora is not supplying it with backuppc package:
http://pkgs.fedoraproject.org/cgit/BackupPC.git/tree/backuppc.service
Comment 2 thorus90 2014-07-01 18:55:37 UTC
I wasn't trying to get the apache unit file for apache2-backuppc. From Fedora I only got the backuppc unit file.

I was trying to adjust the apache unit file from gentoo to work with backuppc, as the openrc init.d file provided by gentoo for apache was adjusted to start apache which only starts the backuppc webinterface.
Comment 3 Pacho Ramos gentoo-dev 2014-07-01 19:15:58 UTC
+*backuppc-3.2.1-r3 (01 Jul 2014)
+
+  01 Jul 2014; Pacho Ramos <pacho@gentoo.org> +backuppc-3.2.1-r3.ebuild,
+  +files/backuppc.service:
+  Add unit file (#513850 by thorus90)
+

Will go at least with this one... if you are able to prepare another one for launching apache, feel free to open a new bug attaching it

Thanks
Comment 4 Erik Zeek 2014-12-01 17:03:57 UTC
The service file is not currently being installed in backuppc-3.3.0.  Could that be fixed?
Comment 5 Pacho Ramos gentoo-dev 2014-12-02 10:35:21 UTC
+*backuppc-3.3.0-r1 (02 Dec 2014)
+
+  02 Dec 2014; Pacho Ramos <pacho@gentoo.org> +backuppc-3.3.0-r1.ebuild,
+  -backuppc-3.3.0.ebuild:
+  Install unit file again as looks like was dropped by error (#513850#c4 by Erik
+  Zeek)
+