From 47152092bb22f71e1c1386e78bb96a71007ddfcc Mon Sep 17 00:00:00 2001 From: Ryan Voots Date: Sat, 25 Jun 2016 20:10:43 -0400 Subject: [PATCH] Add systemd service files for the bot and evalserver --- etc/systemd/system/evalserver.service | 16 ++++++++++++++++ etc/systemd/system/perlbot.service | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 etc/systemd/system/evalserver.service create mode 100644 etc/systemd/system/perlbot.service diff --git a/etc/systemd/system/evalserver.service b/etc/systemd/system/evalserver.service new file mode 100644 index 0000000..fec15a7 --- /dev/null +++ b/etc/systemd/system/evalserver.service @@ -0,0 +1,16 @@ +[Unit] +Description=Perlbot eval server +After=network.target + +[Service] +Type=simple +User=root +Group=root +ExecStart=/home/ryan/bots/perlbuut/bin/evalserver + +# Give a reasonable amount of time for the server to start up/shut down +TimeoutSec=300 + +[Install] +WantedBy=multi-user.target + diff --git a/etc/systemd/system/perlbot.service b/etc/systemd/system/perlbot.service new file mode 100644 index 0000000..dc4d123 --- /dev/null +++ b/etc/systemd/system/perlbot.service @@ -0,0 +1,16 @@ +[Unit] +Description=Perlbot service +After=network.target + +[Service] +Type=simple +User=ryan +Group=ryan +ExecStart=/home/ryan/perl5/perlbrew/perls/perlbot-inuse/bin/perl /home/ryan/bots/perlbuut/bin/bb3 + +# Give a reasonable amount of time for the server to start up/shut down +TimeoutSec=300 + +[Install] +WantedBy=multi-user.target +