Hi,
Is it possible to stop & start the core services: Windows File Sharing, NFS Server, rSync from the command line to be able to script it?
If so, what would the syntax be?
Thank you,
JP
			
			
									
						
										
						Stop & start services from script?
- 
				JPtheJP
 - Posts: 10
 - youtube meble na wymiar Warszawa
 - Joined: Wed Feb 12, 2014 4:02 am
 
- 
				orion
														 - Posts: 3485
 - Joined: Wed May 29, 2013 11:09 am
 
Re: Stop & start services from script?
I studied before. It's easy to understand their linux structure.  
 
You should be able to find built-in-service start/stop scripts (nfs, smbd, nmbd, rsync, rsyncd) in:
/usr/builtin/etc/init.d/
If you want to find APP start/stop scripts, here is:
/usr/local/etc/init.d/
for example:
> /usr/builtin/etc/init.d/S41nfs restart
They are normal linux shell commands.
 
And I also found the link below is helpful.
http://forum.asustor.com/viewtopic.php? ... ilit=start
			
			
									
						
										
						You should be able to find built-in-service start/stop scripts (nfs, smbd, nmbd, rsync, rsyncd) in:
/usr/builtin/etc/init.d/
If you want to find APP start/stop scripts, here is:
/usr/local/etc/init.d/
for example:
> /usr/builtin/etc/init.d/S41nfs restart
They are normal linux shell commands.
And I also found the link below is helpful.
http://forum.asustor.com/viewtopic.php? ... ilit=start
- 
				JPtheJP
 - Posts: 10
 - Joined: Wed Feb 12, 2014 4:02 am
 
Re: Stop & start services from script?
Thank you.
I have enough information to test a script manually, and if it works as desired, set it as a startup script!
Have a great week,
JP
			
			
									
						
										
						I have enough information to test a script manually, and if it works as desired, set it as a startup script!
Have a great week,
JP