Squashed commit of the following: commit39b438aa4bAuthor: Oliver Gorwits <oliver@cpan.org> Date: Sat May 6 16:40:11 2017 +0100 add release notes commitca4ea90d35Author: Oliver Gorwits <oliver@cpan.org> Date: Sat May 6 16:32:06 2017 +0100 update distmeta commit4e35b904b0Author: Oliver Gorwits <oliver@cpan.org> Date: Sat May 6 16:30:22 2017 +0100 rename files from Daemon to Backend commit86a605ba68Author: Oliver Gorwits <oliver@cpan.org> Date: Sat May 6 16:26:43 2017 +0100 rename daemon to backend in code commitffe8fc180fAuthor: Oliver Gorwits <oliver@cpan.org> Date: Sat May 6 16:15:57 2017 +0100 add daemon files which exec to backend equivalents commit53e041594eAuthor: Oliver Gorwits <oliver@cpan.org> Date: Sat May 6 15:32:49 2017 +0100 rename netdisco-daemon to netdisco-backend
		
			
				
	
	
		
			71 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			71 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| =head1 NAME
 | |
| 
 | |
| App::Netdisco::Manual::Systemd - Systemd install tips
 | |
| 
 | |
| =head1 Introduction
 | |
| 
 | |
| This page documents Netdisco running under systemd. Thanks to Aurelien Guerson
 | |
| and Stuart Kendrick for offering this solution. Please check these
 | |
| instructions apply to your local installation and use at your own risk.
 | |
| 
 | |
| =head1 Files
 | |
| 
 | |
| =head2 C<< /etc/systemd/system/netdisco-backend.service >>
 | |
| 
 | |
| This should be set mode 644 and owned by user and group C<root>.
 | |
| 
 | |
|   [Unit]
 | |
|   Description=Netdisco Backend Service
 | |
|   AssertFileIsExecutable=/home/netdisco/bin/netdisco-backend
 | |
|   After=syslog.target network-online.target
 | |
|   
 | |
|   [Service]
 | |
|   Type=forking
 | |
|   User=netdisco
 | |
|   Group=netdisco
 | |
|   ExecStart=/home/netdisco/bin/netdisco-backend start
 | |
|   ExecStop=/home/netdisco/bin/netdisco-backend stop
 | |
|   Restart=on-failure
 | |
|   RestartSec=60
 | |
|   
 | |
|   [Install]
 | |
|   WantedBy=multi-user.target
 | |
| 
 | |
| =head2 C<< /etc/systemd/system/netdisco-web.service >>
 | |
| 
 | |
| This should be set mode 644 and owned by user and group C<root>.
 | |
| 
 | |
|   [Unit]
 | |
|   Description=Netdisco Web Service
 | |
|   AssertFileIsExecutable=/home/netdisco/bin/netdisco-web
 | |
|   After=syslog.target network-online.target netdisco-backend.service
 | |
|   
 | |
|   [Service]
 | |
|   Type=forking
 | |
|   User=netdisco
 | |
|   Group=netdisco
 | |
|   ExecStart=/home/netdisco/bin/netdisco-web start
 | |
|   ExecStop=/home/netdisco/bin/netdisco-web stop
 | |
|   Restart=on-failure
 | |
|   RestartSec=60
 | |
|   
 | |
|   [Install]
 | |
|   WantedBy=multi-user.target
 | |
| 
 | |
| =head1 Commands
 | |
| 
 | |
| To enable Netdisco in systemd:
 | |
| 
 | |
|  systemctl enable netdisco-backend.service
 | |
|  systemctl enable netdisco-web.service
 | |
| 
 | |
| To start Netdisco:
 | |
| 
 | |
|  systemctl start netdisco-backend.service
 | |
|  systemctl start netdisco-web.service
 | |
| 
 | |
| May also need to run C<systemctl netdisco-backend reload> depending on the
 | |
| order you do these steps.
 | |
| 
 | |
| =cut
 |