add .service file and update README a little.

This commit is contained in:
jake 2024-11-16 01:30:49 -05:00
parent c47a2fce47
commit 7b66561573
2 changed files with 19 additions and 0 deletions

View file

@ -42,6 +42,7 @@ jjakkekeyserver% exit
```
#### postgres
Probably not needed info, but postgres here is version 15.
```
% sudo apt install postgresql postgresql-server-dev-xx
% sudo -u postgres psql # test if 'active' so to speak.

18
jjakkekeyserver.service Normal file
View 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