diff --git a/docs/das.service b/docs/das.service new file mode 100644 index 0000000..d5db81f --- /dev/null +++ b/docs/das.service @@ -0,0 +1,19 @@ +[Unit] +Description=DAS Server +After=network.target + +[Service] +Type=simple +User=root +Group=root +Restart=on-failure +ExecStart=/usr/bin/php /opt/registry/das/start_das.php +ExecReload=/bin/kill -HUP $MAINPID +ExecStop=/bin/kill -INT $MAINPID +WorkingDirectory=/opt/registry/das +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=das + +[Install] +WantedBy=multi-user.target diff --git a/docs/epp.service b/docs/epp.service new file mode 100644 index 0000000..109efe3 --- /dev/null +++ b/docs/epp.service @@ -0,0 +1,19 @@ +[Unit] +Description=EPP Server +After=network.target + +[Service] +Type=simple +User=root +Group=root +Restart=on-failure +ExecStart=/usr/bin/php /opt/registry/epp/start_epp.php +ExecReload=/bin/kill -HUP $MAINPID +ExecStop=/bin/kill -INT $MAINPID +WorkingDirectory=/opt/registry/epp +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=epp + +[Install] +WantedBy=multi-user.target diff --git a/docs/install.md b/docs/install.md index d983ba7..0363831 100644 --- a/docs/install.md +++ b/docs/install.md @@ -322,7 +322,17 @@ composer install mv config.php.dist config.php ``` -Configure all options in ```config.php``` and run ```php start_whois.php &``` +- Configure all options in ```config.php```. + +- Copy ```docs/whois.service``` to ```/etc/systemd/system/```. Change only User and Group lines to your user and group. + +```bash +systemctl daemon-reload +systemctl start whois.service +systemctl enable whois.service +``` + +After that you can manage WHOIS via systemctl as any other service. ## 10. Setup RDAP: @@ -332,7 +342,17 @@ composer install mv config.php.dist config.php ``` -Configure all options in ```config.php``` and run ```php start_rdap.php &``` +- Configure all options in ```config.php```. + +- Copy ```docs/rdap.service``` to ```/etc/systemd/system/```. Change only User and Group lines to your user and group. + +```bash +systemctl daemon-reload +systemctl start rdap.service +systemctl enable rdap.service +``` + +After that you can manage RDAP via systemctl as any other service. ## 11. Setup EPP: @@ -342,7 +362,7 @@ composer install mv config.php.dist config.php ``` -Configure all options in ```config.php``` and run ```php start_epp.php &``` +Configure all options in ```config.php```. To create test certificates (cert.pem and key.pem): @@ -351,6 +371,16 @@ openssl genrsa -out key.pem 2048 openssl req -new -x509 -key key.pem -out cert.pem -days 365 ``` +- Copy ```docs/epp.service``` to ```/etc/systemd/system/```. Change only User and Group lines to your user and group. + +```bash +systemctl daemon-reload +systemctl start epp.service +systemctl enable epp.service +``` + +After that you can manage EPP via systemctl as any other service. + ## 12. Setup Automation Scripts: ```bash @@ -466,7 +496,17 @@ composer install mv config.php.dist config.php ``` -Configure all options in ```config.php``` and run ```php start_das.php &``` +Configure all options in ```config.php```. + +- Copy ```docs/das.service``` to ```/etc/systemd/system/```. Change only User and Group lines to your user and group. + +```bash +systemctl daemon-reload +systemctl start das.service +systemctl enable das.service +``` + +After that you can manage DAS via systemctl as any other service. ## 14. Setup Monitoring: diff --git a/docs/rdap.service b/docs/rdap.service new file mode 100644 index 0000000..15d7139 --- /dev/null +++ b/docs/rdap.service @@ -0,0 +1,19 @@ +[Unit] +Description=RDAP Server +After=network.target + +[Service] +Type=simple +User=root +Group=root +Restart=on-failure +ExecStart=/usr/bin/php /opt/registry/rdap/start_rdap.php +ExecReload=/bin/kill -HUP $MAINPID +ExecStop=/bin/kill -INT $MAINPID +WorkingDirectory=/opt/registry/rdap +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=rdap + +[Install] +WantedBy=multi-user.target diff --git a/docs/whois.service b/docs/whois.service new file mode 100644 index 0000000..55c0e0c --- /dev/null +++ b/docs/whois.service @@ -0,0 +1,19 @@ +[Unit] +Description=WHOIS Server +After=network.target + +[Service] +Type=simple +User=root +Group=root +Restart=on-failure +ExecStart=/usr/bin/php /opt/registry/whois/port43/start_whois.php +ExecReload=/bin/kill -HUP $MAINPID +ExecStop=/bin/kill -INT $MAINPID +WorkingDirectory=/opt/registry/whois/port43 +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=whois + +[Install] +WantedBy=multi-user.target