Send netdisco-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Re: Auto start Netdisco on Centos 7 ? (Alan Buxey)
   2. Re: Auto start Netdisco on Centos 7 ? (Nenad Tomasevic)
   3. Re: Auto start Netdisco on Centos 7 ? (Peter Grasso)
--- Begin Message ---
Centos 7 now uses systemd so you need to either write a small systemd script or 
use the systemd alternative to rc.local 


alan

--- End Message ---
--- Begin Message ---
Hi,

You can generate init scripts; 
https://metacpan.org/pod/distribution/App-Netdisco/lib/App/Netdisco/Manual/Deployment.pod#Init-and-Run-Control-Scripts

Well, works for Debian, with remark you need to remove white space after 
Netdisco from „Provides:“  in some way you like.

KR,

Nenad

From: Peter Grasso [mailto:[email protected]]
Sent: Wednesday, October 07, 2015 5:03 AM
To: [email protected]
Subject: [Netdisco] Auto start Netdisco on Centos 7 ?

Hi all,

Does anyone know how to get Netdisco2 services to auto start on a Centos-7 
server if it reboots ?


I have tried adding


sudo -u netdisco /home/netdisco/bin/netdisco-web start

sudo -u netdisco /home/netdisco/bin/netdisco-daemon start
to /etc/rc.local, but this does not seem to do the trick anymore. (It used to 
in 6.5 I think)

If I type the above commands logged in as root it works, and I can also start 
manually if I log in as my netdisco user.

Just can't get it to start when the server boots...


Regards, Pete G

--- End Message ---
--- Begin Message ---
Thanks for the heads up - I generated the scripts, copied them to /usr/bin, did 
a chmod +x on them and then wrote a couple of .service scripts in 
/etc/systemd/system to call them.   (I called them ndweb.service and 
nddaemon.service)

Once that was done I then enabled my new services with systemctl enable  
ndweb.service
One reboot later and it's all working !
 Regards, Peter Grasso
      From: Nenad Tomasevic <[email protected]>
 To: Peter Grasso <[email protected]>; "[email protected]" 
<[email protected]> 
 Sent: Wednesday, 7 October 2015, 18:34
 Subject: RE: [Netdisco] Auto start Netdisco on Centos 7 ?
   
#yiv4358249411 #yiv4358249411 -- _filtered #yiv4358249411 
{font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv4358249411 
{font-family:Helvetica;panose-1:2 11 6 4 2 2 2 2 2 4;} _filtered #yiv4358249411 
{font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;} _filtered #yiv4358249411 
{font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;} _filtered #yiv4358249411 
{font-family:Consolas;panose-1:2 11 6 9 2 2 4 3 2 4;}#yiv4358249411 
#yiv4358249411 p.yiv4358249411MsoNormal, #yiv4358249411 
li.yiv4358249411MsoNormal, #yiv4358249411 div.yiv4358249411MsoNormal 
{margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;}#yiv4358249411 a:link, 
#yiv4358249411 span.yiv4358249411MsoHyperlink 
{color:blue;text-decoration:underline;}#yiv4358249411 a:visited, #yiv4358249411 
span.yiv4358249411MsoHyperlinkFollowed 
{color:purple;text-decoration:underline;}#yiv4358249411 pre 
{margin:0cm;margin-bottom:.0001pt;font-size:10.0pt;}#yiv4358249411 
span.yiv4358249411HTMLPreformattedChar {font-family:Consolas;}#yiv4358249411 
span.yiv4358249411EmailStyle19 {color:#1F497D;}#yiv4358249411 
.yiv4358249411MsoChpDefault {font-size:10.0pt;} _filtered #yiv4358249411 
{margin:70.85pt 70.85pt 70.85pt 70.85pt;}#yiv4358249411 
div.yiv4358249411WordSection1 {}#yiv4358249411 Hi,    You can generate init 
scripts;https://metacpan.org/pod/distribution/App-Netdisco/lib/App/Netdisco/Manual/Deployment.pod#Init-and-Run-Control-Scripts
    Well, works for Debian, with remark you need to remove white space after 
Netdisco from „Provides:“  in some way you like.    KR,    Nenad    

From: Peter Grasso [mailto:[email protected]]
Sent: Wednesday, October 07, 2015 5:03 AM
To: [email protected]
Subject: [Netdisco] Auto start Netdisco on Centos 7 ?    Hi all,    Does anyone 
know how to get Netdisco2 services to auto start on a Centos-7 server if it 
reboots ? 

 I have tried adding

 sudo -u netdisco /home/netdisco/bin/netdisco-web start sudo -u netdisco 
/home/netdisco/bin/netdisco-daemon start to /etc/rc.local, but this does not 
seem to do the trick anymore. (It used to in 6.5 I think)    If I type the 
above commands logged in as root it works, and I can also start manually if I 
log in as my netdisco user.    Just can't get it to start when the server 
boots...    Regards, Pete G 

  

--- End Message ---
------------------------------------------------------------------------------
_______________________________________________
Netdisco mailing list - Digest Mode
[email protected]
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to