Skip to content

Commit f2e2e52

Browse files
removed parameters from init services
The daemon no longer requires the parameter -rules-path. The default path is /etc/opensnitchd/rules, and it's configurable from the configuration.
1 parent a0af75b commit f2e2e52

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

daemon/data/init/opensnitchd-dinit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Application firewall OpenSnitch
22
type = process
3-
command = /usr/bin/opensnitchd -rules-path /etc/opensnitchd/rules
3+
command = /usr/bin/opensnitchd
44
restart = true
55
smooth-recovery = yes
66
restart-delay = 15

daemon/data/init/opensnitchd-openrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ start() {
2222
# only if the verbose flag is not set (rc-service opensnitchd start -v)
2323
if [ -z "$VERBOSE" ]; then
2424
# redirect stdout and stderr to /dev/null
25-
/usr/local/bin/opensnitchd -rules-path /etc/opensnitchd/rules -log-file /var/log/opensnitchd.log > /dev/null 2>&1 &
25+
/usr/local/bin/opensnitchd > /dev/null 2>&1 &
2626
else
27-
/usr/local/bin/opensnitchd -rules-path /etc/opensnitchd/rules -log-file /var/log/opensnitchd.log
27+
/usr/local/bin/opensnitchd
2828
fi
2929
eend $?
3030
}

daemon/data/init/opensnitchd.service

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ Documentation=https://github.com/evilsocket/opensnitch/wiki
44

55
[Service]
66
Type=simple
7-
PermissionsStartOnly=true
8-
ExecStartPre=/bin/mkdir -p /etc/opensnitchd/rules
9-
ExecStart=/usr/local/bin/opensnitchd -rules-path /etc/opensnitchd/rules
7+
ExecStart=/usr/local/bin/opensnitchd
108
Restart=always
119
RestartSec=30
1210
TimeoutStopSec=10

utils/packaging/daemon/deb/debian/opensnitch.service

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
[Unit]
22
Description=Application firewall OpenSnitch
3-
Documentation=https://github.com/gustavo-iniguez-goya/opensnitch/wiki
3+
Documentation=https://github.com/evilsocket/opensnitch/wiki
44
Wants=network.target
55
After=network.target
66

77
[Service]
88
Type=simple
9-
PermissionsStartOnly=true
10-
ExecStartPre=/bin/mkdir -p /etc/opensnitchd/rules
11-
ExecStart=/usr/bin/opensnitchd -rules-path /etc/opensnitchd/rules
9+
ExecStart=/usr/bin/opensnitchd
1210
Restart=always
1311
RestartSec=30
1412
TimeoutStopSec=10

0 commit comments

Comments
 (0)