Skip to content

Commit

Permalink
Added Tribler systemd unit
Browse files Browse the repository at this point in the history
  • Loading branch information
devos50 committed Mar 14, 2018
1 parent 520239f commit 8f0ec14
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions systemd/tribler.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[Unit]
Description="Tribler runner"
After=network.target

[Service]
ProtectSystem=yes
PrivateTmp=true
Type=simple
User=tribler
Group=tribler
Restart=always
Environment=HOME=/var/lib/tribler/%I
Environment=EXTRA_TRIBLER_ARGS=--
Environment=PYTHONPATH=/opt/tribler

WorkingDirectory=/opt/tribler
ExecStartPre=/bin/mkdir -p ${HOME}
ExecStart=/usr/bin/twistd --nodaemon tribler ${EXTRA_TRIBLER_ARGS}

[Install]
WantedBy=multi-user.target

0 comments on commit 8f0ec14

Please sign in to comment.