On Mon, Jul 10, 2017 at 11:18:22PM +0200, Heiko Schlittermann wrote: > Jose M Calhariz <[email protected]> (Mo 10 Jul 2017 19:51:31 > CEST): > … > > I happily ship a systemd unit for amanda if someone writes one for the > > Debian package. > > Here are the unit files, I created just now. > The User= setting needs to be adapted probably.
Fedora and CentOS (thus probably RHEL also) have some slight variations. Plus I added a couple of additions. May not be appropriate for Debian, I don't know. > > ,---------------------------------[the socket unit]----------- > | # amanda.socket > | [Unit] > | Description=Amanda Server socket It is refered to as "Amanda Activation socket". I suspect because it is used by both server and client. > | Wants=network.target > | > | [Socket] > | Accept=true > | # need an IPv4 address, as current (3.3.9) amandad can't deal with ipv6 > here > | ListenStream=0.0.0.0:10080 > | > | [Install] > | WantedBy=sockets.target > `---------------------------------------------------------------- > > ,--------------------------[the service template unit]----------- > | # [email protected] > | [Unit] > | Description=Amanda Server service Again, an alternative description "Amanda Backup Service" Added "After=local-fs.target". Debian may not even have the "local-fs.target", or they may have something similar. > | > | [Service] > | User=backup <------------- change it to your needs "Group=disk" is added > | StandardInput=socket > | StandardError=journal > | ExecStart=/usr/lib/amanda/amandad -auth=bsdtcp amdump amindexd amidxtaped Added valid commands "amdumpd" and "ambackupd" to allow server to respond to recently added client requests. One such requests is "ambackup" which allows the client to requests it own immediate backup to the holding disk for later autoflush during a regular amdump run. I use it for my sometimes on/sometimes off laptop. > `------------------------------------------------------------------ > > > Best regards from Dresden/Germany > Viele Grüße aus Dresden > Heiko Schlittermann > -- > SCHLITTERMANN.de ---------------------------- internet & unix support - > Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} - > gnupg encrypted messages are welcome --------------- key ID: F69376CE - > ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ - >>> End of included message <<< -- Jon H. LaBadie [email protected] 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)
