service module with Slackware

40 views
Skip to first unread message

Steve Saner

unread,
Dec 9, 2016, 5:57:09 PM12/9/16
to Ansible Project
I am finding that the service module in the core ansible modules does not work for starting/stopping services on a Slackware system. Slackware, as you might know, does not use the same startup script systems that most Linux distributions use. It uses something much more BSD like, but not exactly like either.

I'm wanting to know if there is a known work-around for this. I am considering a hack to the service module code, but I didn't want to do that if there was some known good solution.

Thanks

Steve

Brian Coca

unread,
Dec 14, 2016, 4:47:14 PM12/14/16
to ansible...@googlegroups.com
It uses a rc.d system which is what berkely/BSDs use, unlike most linux that use a sysV init system. I would create a specific module and then add 'init system discovery' to set to that in fact gathering.


----------
Brian Coca

Steve Saner

unread,
Dec 14, 2016, 4:56:14 PM12/14/16
to ansible...@googlegroups.com
Interesting suggestion. What I have done so far is I have added some
code to the service.py module. That module already looks for a bunch of
different kinds of service management systems for a number of different
operating systems. I have it working pretty well. Once I have used it
enough to feel that it is fairly bug free, I would be happy to
contribute it.

Steve

--
--------------------------------------------------------------------------
Steven Saner <st...@saner.net> KD0IJP
Andover, Kansas USA

Brian Coca

unread,
Dec 14, 2016, 4:59:04 PM12/14/16
to ansible...@googlegroups.com
I'm in the process of deprecating service module just because of what you state, it is very prone to error and breaking and does not support all those systems well. Also it limits the options and behaviors available.


----------
Brian Coca

Steve Saner

unread,
Dec 14, 2016, 5:04:27 PM12/14/16
to ansible...@googlegroups.com
Ah, okay, good to know. Then I will look into that. Thanks for the heads up.
Reply all
Reply to author
Forward
0 new messages