diff options
| author | Shulhan <ms@kilabit.info> | 2018-04-05 03:19:08 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-04-05 03:19:08 +0700 |
| commit | 42be4cb7d052766f2a1611985e312441aabe7e9c (patch) | |
| tree | 4ad30368fc4d0f2f47e2f447e19edcacbb2c4c65 | |
| parent | 09b115031f6cfcc1a49d8150cfc31bee459f8d65 (diff) | |
| download | haminer-42be4cb7d052766f2a1611985e312441aabe7e9c.tar.xz | |
Add an example of systemd service
| -rw-r--r-- | cmd/haminer/haminer.service | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmd/haminer/haminer.service b/cmd/haminer/haminer.service new file mode 100644 index 0000000..b8ad45d --- /dev/null +++ b/cmd/haminer/haminer.service @@ -0,0 +1,11 @@ +[Unit] +Description=haminer +After=syslog.target network.target + +[Service] +ExecStart=/usr/local/bin/haminer +User=centos +Restart=always + +[Install] +WantedBy=multi-user.target |
