Browse Source

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

adaptive-webui-19844
sledgehammer999 10 years ago
parent
commit
0994d258e2
  1. 1317
      configure
  2. 2
      configure.ac
  3. 2
      dist/unix/systemd/qbittorrent-nox.service.in

1317
configure vendored

File diff suppressed because it is too large Load Diff

2
configure.ac

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

2
dist/unix/systemd/qbittorrent-nox.service → dist/unix/systemd/qbittorrent-nox.service.in vendored

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