Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add systemd service files
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| [Unit] | ||
| Description=JVM eval server for camelia | ||
|
|
||
| [Service] | ||
| Type=simple | ||
| User=camelia | ||
| Environment=PERL5LIB=/home/camelia/perl5/lib/perl5/:/home/camelia/perl5/lib/perl5/x86_64-linux/ | ||
| ExecStart=/bin/bash /home/camelia/bin/perlbrewed-perl /home/camelia/evalbot/runtime/run-rakudo-jvm-evalserver | ||
| KillSignal=SIGKILL | ||
| WorkingDirectory=/home/camelia/ | ||
| Restart=always | ||
| #PrivateTmp=yes | ||
| #PrivateDevices=yes | ||
| #ProtectSystem=full | ||
| #NoNewPrivileges=yes | ||
| #MemoryLimit=4G | ||
| #LimitNPROC=10 | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| [Unit] | ||
| Description=Perl 6 eval bot camelia | ||
|
|
||
| [Service] | ||
| Type=simple | ||
| User=camelia | ||
| Environment=PERL5LIB=/home/camelia/perl5/lib/perl5/:/home/camelia/perl5/lib/perl5/x86_64-linux/ | ||
| ExecStart=/bin/bash /home/camelia/evalbot/run.sh %i.conf | ||
| KillSignal=SIGKILL | ||
| WorkingDirectory=/home/camelia/evalbot | ||
| Restart=always | ||
| # can't have PrivateTmp, because communication with the JVM evalbot server | ||
| # goes through temp files :( | ||
| # PrivateTmp=yes | ||
| #PrivateDevices=yes | ||
| # ProtectSystem=full | ||
| NoNewPrivileges=yes | ||
| # LimitNPROC=30 | ||
|
|
||
| [Install] | ||
| WantedBy=multi-user.target |