Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
App::Netdisco::Manual:UsertContributed Perl DApp::Netdisco::Manual::Systemd(3)

NAME
       App::Netdisco::Manual::Systemd -	Systemd	install	tips

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.

Files
   "/etc/systemd/system/netdisco-daemon.service"
       This should be set mode 644 and owned by	user and group "root".

	 [Unit]
	 Description=Netdisco Daemon Service
	 AssertFileIsExecutable=/home/netdisco/bin/netdisco-daemon
	 After=syslog.target network-online.target

	 [Service]
	 Type=forking
	 User=netdisco
	 Group=netdisco
	 ExecStart=/home/netdisco/bin/netdisco-daemon start
	 ExecStop=/home/netdisco/bin/netdisco-daemon stop
	 Restart=on-failure
	 RestartSec=60

	 [Install]
	 WantedBy=multi-user.target

   "/etc/systemd/system/netdisco-web.service"
       This should be set mode 644 and owned by	user and group "root".

	 [Unit]
	 Description=Netdisco Web Service
	 AssertFileIsExecutable=/home/netdisco/bin/netdisco-web
	 After=syslog.target network-online.target netdisco-daemon.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

Commands
       To enable Netdisco in systemd:

	systemctl enable netdisco-daemon.service
	systemctl enable netdisco-web.service

       To start	Netdisco:

	systemctl start	netdisco-daemon.service
	systemctl start	netdisco-web.service

       May also	need to	run "systemctl daemon-reload" depending	on the order
       you do these steps.

perl v5.24.1			  2016-07-18 App::Netdisco::Manual::Systemd(3)

NAME | Introduction | Files | Commands

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=App::Netdisco::Manual::Systemd&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help