stevenshiau / drbl

Diskless Remote Boot in Linux.
GNU General Public License v2.0
64 stars 24 forks source link

How add custom services to client? #13

Open marcelopedras opened 7 years ago

marcelopedras commented 7 years ago

I m creating a custom service in /srv/cluster/bin/ and linking to /tftpboot/nodes/10.1.1.1/etc/init.d/ with:

ln -s /srv/cluster/bin/node_service /tftpboot/nodes/10.1.1.1/etc/init.d/node_service

When use:

drbl-client-service node_service on

not create /rc0.d /rc1.d ... bindings in /tftpboot/nodes/10.1.1.1/etc/.

Where from drbl-client-service copy the services?

Then i modify de file /usr/sbin/drbl-client-service. I m using debian jessie and insserv.

In switch 'on' option, in line

chroot $ihost/ insserv $service &> /dev/null

i rewrite to

insserv -p $ihost/etc/init.d/ $service

Then the bindings works and image templates were created.

I m creating a custom service in /srv/cluster/bin/ and linking to /tftpboot/nodes/10.1.1.1/etc/init.d/ with:

ln -s /srv/cluster/bin/node_service /tftpboot/nodes/10.1.1.1/etc/init.d/node_service

When use:

drbl-client-service node_service on

not create /rc0.d /rc1.d ... in bindings /tftpboot/nodes/10.1.1.1/etc/.

Then i modify de file /usr/sbin/drbl-client-service. I m using debian jessie and insserv.

In switch on option, in line

chroot $ihost/ insserv $service &> /dev/null

i rewrite to

insserv -p $ihost/etc/init.d/ $service

Then the bindings works and image templates were created.

Whether I put files manualy using insserv -p /tftpboot/nodes/10.1.1.1/etc/init.d/ node_service, these are cleaned when I use dcs. Why?

I using DRBL to create a cluster in shared computer labs. I need to add the service in startup to all nodes.

I do not understand that files need stay in node_root or nodes. Whether I using ssi, why the files not stay on node_root only?

Sorry, I dont speak english.

paulpas commented 5 years ago

I am also having an issue adding a systemd service. I see them in the nodes/ directory, but they are inactive. How can I get this solved?