add .service file and update README a little.
This commit is contained in:
parent
c47a2fce47
commit
7b66561573
2 changed files with 19 additions and 0 deletions
|
@ -42,6 +42,7 @@ jjakkekeyserver% exit
|
||||||
```
|
```
|
||||||
|
|
||||||
#### postgres
|
#### postgres
|
||||||
|
Probably not needed info, but postgres here is version 15.
|
||||||
```
|
```
|
||||||
% sudo apt install postgresql postgresql-server-dev-xx
|
% sudo apt install postgresql postgresql-server-dev-xx
|
||||||
% sudo -u postgres psql # test if 'active' so to speak.
|
% sudo -u postgres psql # test if 'active' so to speak.
|
||||||
|
|
18
jjakkekeyserver.service
Normal file
18
jjakkekeyserver.service
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
[Unit]
|
||||||
|
Description=jjakke's keyserver
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=jjakkekeyserver
|
||||||
|
Group=jjakkekeyserver
|
||||||
|
WorkingDirectory=/var/jjakkekeyserver/keyserver
|
||||||
|
ExecStart=/var/jjakkekeyserver/perl5/perlbrew/perls/perl-5.40.0/bin/hypnotoad -f /var/jjakkekeyserver/keyserver/keyserver
|
||||||
|
Environment=PERL5LIB=/var/jjakkekeyserver/perl5/lib/perl5
|
||||||
|
Environment=PATH=/var/jjakkekeyserver/perl5/perlbrew/bin:/var/jjakkekeyserver/perl5/perlbrew/perls/perl-5.40.0/bin:$PATH
|
||||||
|
Restart=always
|
||||||
|
RestartSec=5
|
||||||
|
LimitNOFILE=4096
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in a new issue