mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-25 03:48:24 +02:00
Added systemctl examples for the services.
This commit is contained in:
parent
040428bdab
commit
71358be2e2
5 changed files with 120 additions and 4 deletions
19
docs/das.service
Normal file
19
docs/das.service
Normal file
|
@ -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
|
19
docs/epp.service
Normal file
19
docs/epp.service
Normal file
|
@ -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
|
|
@ -322,7 +322,17 @@ composer install
|
||||||
mv config.php.dist config.php
|
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:
|
## 10. Setup RDAP:
|
||||||
|
|
||||||
|
@ -332,7 +342,17 @@ composer install
|
||||||
mv config.php.dist config.php
|
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:
|
## 11. Setup EPP:
|
||||||
|
|
||||||
|
@ -342,7 +362,7 @@ composer install
|
||||||
mv config.php.dist config.php
|
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):
|
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
|
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:
|
## 12. Setup Automation Scripts:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -466,7 +496,17 @@ composer install
|
||||||
mv config.php.dist config.php
|
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:
|
## 14. Setup Monitoring:
|
||||||
|
|
||||||
|
|
19
docs/rdap.service
Normal file
19
docs/rdap.service
Normal file
|
@ -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
|
19
docs/whois.service
Normal file
19
docs/whois.service
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue