summaryrefslogtreecommitdiffstats
path: root/src/signframework/systemd
diff options
context:
space:
mode:
authorChris Engel <cjengel@us.ibm.com>2017-09-18 11:24:36 -0400
committerChris Engel <cjengel@us.ibm.com>2017-09-18 11:44:05 -0400
commit0ea64ed5aa32cc8b0c54ae7f2c3b25789d664333 (patch)
treeede5a18e0cd3762861eba62adeba572cc6e91027 /src/signframework/systemd
parent1683dc770b753a6cc7c8651fcbbb847b735797e8 (diff)
downloadsb-signing-framework-0ea64ed5aa32cc8b0c54ae7f2c3b25789d664333.tar.gz
sb-signing-framework-0ea64ed5aa32cc8b0c54ae7f2c3b25789d664333.zip
Initial drop of signing server framework
Diffstat (limited to 'src/signframework/systemd')
-rw-r--r--src/signframework/systemd/signframework.conf4
-rw-r--r--src/signframework/systemd/signframework.service19
2 files changed, 23 insertions, 0 deletions
diff --git a/src/signframework/systemd/signframework.conf b/src/signframework/systemd/signframework.conf
new file mode 100644
index 0000000..3d49b62
--- /dev/null
+++ b/src/signframework/systemd/signframework.conf
@@ -0,0 +1,4 @@
+# Configuration file for the signing_framework service.
+
+OPTIONS=-v
+FRAMEWORK_CONFIG_FILE=/home/framework/signframework/src/signframework/framework.cfg
diff --git a/src/signframework/systemd/signframework.service b/src/signframework/systemd/signframework.service
new file mode 100644
index 0000000..7468977
--- /dev/null
+++ b/src/signframework/systemd/signframework.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=Signing Framework daemon
+After=network.target sshd.service
+
+[Service]
+Type=simple
+#PIDFile=/var/run/framework.pid
+WorkingDirectory=/home/framework/signframework/src/signframework
+EnvironmentFile=/home/framework/signframework/src/signframework/systemd/signframework.conf
+ExecStart=/home/framework/signframework/src/signframework/framework $OPTIONS
+ExecReload=/bin/kill -HUP $MAINPID
+KillMode=process
+Restart=on-failure
+RestartSec=42s
+User=framework
+Group=framework
+
+[Install]
+WantedBy=multi-user.target
OpenPOWER on IntegriCloud