Skip to content

Commit

Permalink
add systemd services
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelneu committed Jan 3, 2019
1 parent c33b903 commit 6fb13e5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
8 changes: 8 additions & 0 deletions etc/systemd/fanspeed.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Unit]
Description=Initialize fanspeed

[Service]
ExecStart=/usr/bin/fanspeed 40 0

[Install]
WantedBy=multi-user.target
15 changes: 15 additions & 0 deletions etc/systemd/iptables.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=Packet Filtering Framework
DefaultDependencies=no
After=systemd-sysctl.service
Before=sysinit.target

[Service]
Type=oneshot
ExecStart=/sbin/iptables-restore /etc/iptables/iptables.rules
ExecReload=/sbin/iptables-restore /etc/iptables/iptables.rules
ExecStop=/etc/iptables/flush-iptables.sh
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

0 comments on commit 6fb13e5

Please sign in to comment.