Skip to content

Commit

Permalink
Use prefix from autoconf for systemd unit
Browse files Browse the repository at this point in the history
Close znc#974
  • Loading branch information
pfsmorigo authored and DarthGandalf committed Aug 23, 2015
1 parent baa51aa commit c223c85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Makefile
*.pc
/include/znc/zncconfig.h
/znc-buildmod
/znc.service

# modperl and modpython generated code
/modules/modperl/functions.cpp
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ AC_CONFIG_FILES([znc-buildmod])
AC_CONFIG_FILES([man/Makefile])
AC_CONFIG_FILES([znc.pc])
AC_CONFIG_FILES([znc-uninstalled.pc])
AC_CONFIG_FILES([znc.service])
AC_CONFIG_FILES([modules/Makefile])
AC_OUTPUT

Expand Down
2 changes: 1 addition & 1 deletion znc.service → znc.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Description=ZNC, an advanced IRC bouncer
After=network.target

[Service]
ExecStart=/usr/bin/znc -f
ExecStart=@bindir@/znc -f
User=znc

[Install]
Expand Down

0 comments on commit c223c85

Please sign in to comment.