Results 1 to 5 of 5
  1. #1
    Master Untangler
    Join Date
    May 2008
    Posts
    924

    Default 14.0 beta no /etc/rc.local

    I need to restart a pi-hole server for some reason when untangle is restarted. I used to put a script in /etc/rc.local to do things like that. I had not noticed stretch does not have rc.local until now. I see you can add one but was wondering what is the new best way to do that now?

    Thanks

    PS: The beta is working very nice so far.

  2. #2
    Untangler jcoffin's Avatar
    Join Date
    Aug 2008
    Location
    Sunnyvale, CA
    Posts
    7,763

    Default

    14 is based on Debian 9 which switched to systemd so that has been removed. You need to use systemd for starting and stopping services.

    Standard statement: Command line changes are not supported.
    Last edited by jcoffin; 05-21-2018 at 01:18 PM.
    Attention: Support and help on the Untangle Forums is provided by
    volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  3. #3
    Master Untangler
    Join Date
    May 2008
    Posts
    924

    Default

    In this case I don't want to start a service just run a script to restart the pi-hole server. Do I still need to make a .service?

  4. #4
    Untangler jcoffin's Avatar
    Join Date
    Aug 2008
    Location
    Sunnyvale, CA
    Posts
    7,763

    Default

    Yes, to use systemd for restarting another server, a service will need to be created and added.
    Attention: Support and help on the Untangle Forums is provided by
    volunteers and community members like yourself.
    If you need Untangle support please call or email support@untangle.com

  5. #5
    Master Untangler
    Join Date
    May 2008
    Posts
    924

    Default

    So using this link it seems to be working. https://serverfault.com/questions/73...lines-of-shell It uses the traditional rc.local name but I suppose something like pi-hole-restart.sh or whatever would work.

    In case your wondering what command I added
    Code:
    ssh root@10.x.x.x 'reboot & exit'
    You need to setup ssh key so it does not need password.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO 3.6.0 PL2