Ignore:
Timestamp:
Oct 1, 2017, 10:46:05 PM (7 years ago)
Author:
chronos
Message:
  • Added: Systemd service file.
Location:
trunk/Install/deb/debian
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Install/deb/debian/postinst

    r873 r875  
    1818}
    1919
     20service_install() {
     21        mkdir -p /etc/systemd/system
     22        ln -sf ../../wowpreklad/wowpreklad.service /etc/systemd/system/wowpreklad.service
     23}
     24
    2025if [ "$1" = "configure" ]; then
    2126        apache_install $@
     27  service_install $@
    2228fi
    2329
  • trunk/Install/deb/debian/postrm

    r873 r875  
    1717}
    1818
     19service_remove() {
     20  if [ "$COMMON_STATE" = "installed" ] || [ "$COMMON_STATE" = "unpacked" ] ; then
     21    rm -f /etc/systemd/system/wowpreklad.service
     22  fi
     23}
     24
    1925if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
    2026        apache_remove $1
     27  service_remove $1
    2128fi
    2229
Note: See TracChangeset for help on using the changeset viewer.