Skip to content

Commit

Permalink
tinc: add a systemd related file.
Browse files Browse the repository at this point in the history
  • Loading branch information
florin65 committed Oct 22, 2013
1 parent 3c81f09 commit 5bcb621
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions security/tinc/BUILD
@@ -0,0 +1,7 @@
OPTS+=" --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin"

default_build

if module_installed systemd; then
install -D -m644 $SCRIPT_DIRECTORY/system.d/tincd@.service /usr/lib/systemd/system/tincd@.service
fi
10 changes: 10 additions & 0 deletions security/tinc/system.d/tincd@.service
@@ -0,0 +1,10 @@
[Unit]
Description=Tinc daemon for net %i
After=network.target

[Service]
Type=forking
ExecStart=/usr/bin/tincd -n %i

[Install]
WantedBy=multi-user.target

0 comments on commit 5bcb621

Please sign in to comment.