summarylogtreecommitdiffstats
path: root/mumax3@.service
diff options
context:
space:
mode:
authorIvan2016-10-18 22:53:30 -0400
committerIvan2016-10-18 22:53:30 -0400
commitb748e810a7e4ec1d62cca3fc0852e40400ac6b3a (patch)
tree724f474b42de1e6ab28b05c8ff7940140f9c87e5 /mumax3@.service
parenta1a96df79748b56e2fb9ffd59fff9d4b83e523bf (diff)
downloadaur-b748e810a7e4ec1d62cca3fc0852e40400ac6b3a.tar.gz
Add systemd service
Diffstat (limited to 'mumax3@.service')
-rw-r--r--mumax3@.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/mumax3@.service b/mumax3@.service
new file mode 100644
index 000000000000..b95e00d80bc6
--- /dev/null
+++ b/mumax3@.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=MuMax3 server
+After=network.target
+
+[Service]
+User=mumax3
+WorkingDirectory=~
+Type=simple
+ExecStart=/opt/mumax3/mumax3-server -exec /opt/mumax3/mumax3 -l %i
+ExecReload=/bin/kill -s HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target
+