Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add systemd service files
  • Loading branch information
moritz committed Apr 4, 2015
1 parent eb33872 commit 9002c38
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
20 changes: 20 additions & 0 deletions service/camelia-jvm-evalserver.service
@@ -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
21 changes: 21 additions & 0 deletions service/camelia@.service
@@ -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

0 comments on commit 9002c38

Please sign in to comment.