Use absolute path to nox binary in the systemd service file. Also generate the service file with configure. Closes #2914.

This commit is contained in:
sledgehammer999 2015-05-02 23:38:40 +03:00
parent d14805d065
commit 0994d258e2
3 changed files with 1320 additions and 1 deletions

1317
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -286,6 +286,8 @@ AC_SUBST(QBT_ADD_DEFINES)
AC_SUBST(QBT_REMOVE_DEFINES)
AC_OUTPUT(conf.pri)
AS_IF([test "x$enable_systemd" = "xyes"],
[AC_OUTPUT(dist/unix/systemd/qbittorrent-nox.service)])

View file

@ -5,7 +5,7 @@ After=network.target
[Service]
Type=forking
User=1000
ExecStart=qbittorrent-nox -d
ExecStart=@EXPAND_BINDIR@/qbittorrent-nox -d
[Install]
WantedBy=multi-user.target