Skip to content

Commit

Permalink
Merge pull request #25 from gizmoguy/systemd-improvements
Browse files Browse the repository at this point in the history
Change how bearwall2 starts on boot
  • Loading branch information
gizmoguy committed Jun 2, 2020
2 parents 880cfaf + d8a6aac commit a59ffb2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
12 changes: 12 additions & 0 deletions debian/bearwall2.bearwall2-early.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Bearwall2 early boot
Before=network-pre.target
Wants=network-pre.target

[Service]
Type=oneshot
RemainAfterExit=no
ExecStart=/usr/sbin/bearwall2

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[Unit]
Description=Bearwall2
Before=network.target
After=network-online.target
Wants=network-online.target

[Service]
Type=oneshot
Expand Down
11 changes: 10 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
%:
dh $@ --with systemd


override_dh_auto_install:
dh_auto_install -- DESTDIR=$$(pwd)/debian/bearwall2 BINDIR=/usr/sbin SHARDIR=/usr/share ETCDIR=/etc CACHEDIR=/var/cache

override_dh_systemd_enable:
dh_systemd_enable --name=bearwall2

override_dh_installinit:
dh_installinit --name=bearwall2
dh_installinit --name=bearwall2-early --no-start

override_dh_systemd_start:
dh_systemd_start bearwall2.service
4 changes: 2 additions & 2 deletions src/config.in
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ conntrack=stateful
# - ignore
# Don't detect case (Most likely nftables will fail to load)
#
# Default missing=withhold
missing=withhold
# Default missing=lazy
missing=lazy

#
# Transient interfaces
Expand Down

0 comments on commit a59ffb2

Please sign in to comment.