diff options
author | Yunchih Chen <yunchih.cat@gmail.com> | 2018-03-20 23:29:33 +0800 |
---|---|---|
committer | Yunchih Chen <yunchih.cat@gmail.com> | 2018-03-20 23:29:33 +0800 |
commit | 8558b567f4ba87c3a10074b64a459fa48ba19844 (patch) | |
tree | 223ed023c26ac7679e002025b9314a9a7b113a72 | |
parent | 034c50d21f4309408657f1a78ff2675155b97d53 (diff) | |
download | nfcollect-8558b567f4ba87c3a10074b64a459fa48ba19844.tar.gz nfcollect-8558b567f4ba87c3a10074b64a459fa48ba19844.tar.zst nfcollect-8558b567f4ba87c3a10074b64a459fa48ba19844.zip |
Add configuration environment
-rw-r--r-- | service/default | 4 | ||||
-rw-r--r-- | service/nfcollect.service | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/service/default b/service/default new file mode 100644 index 0000000..7faf887 --- /dev/null +++ b/service/default @@ -0,0 +1,4 @@ +# +# Arguments passed to nfcollect +# +NFCOLLECT_ARGS= diff --git a/service/nfcollect.service b/service/nfcollect.service index fe584ad..fc0e0eb 100644 --- a/service/nfcollect.service +++ b/service/nfcollect.service @@ -2,9 +2,13 @@ Description=Netfilter nfcollect daemon Before=network-pre.target Wants=network-pre.target +After=local-fs.target¶ + [Service] -ExecStart=/usr/bin/nfcollect +EnvironmentFile=-/etc/sysconfig/nfcollect +EnvironmentFile=-/etc/default/nfcollect +ExecStart=/usr/bin/nfcollect $NFCOLLECT_ARGS [Install] WantedBy=multi-user.target |