Pengwin icon indicating copy to clipboard operation
Pengwin copied to clipboard

Add to services.sh

Open WSLUser opened this issue 6 years ago • 1 comments

Placemarker for myself if I have time for it. Otherwise, please consider adding this. There are a few init rc.d scripts to work-around not having a working systemd good for Pengwin/PengwinEnterprise/Fedora-Remix-for-WSL: https://gist.github.com/BetsuNo/331f6ecc3b0bc5b3997bf2098235ae2e

These include nginx, php-fpm, memcached and centrifugo. I think nginx and memcached at least will probably want to be included. These are intended to go to /etc/rc.d/init.d but with seeing as we have rc.local for ssh already in services.sh, not sure how easy to move it to there for consolidation. Inclusion of these scripts will allow managing these daemons with service command such as service nginx restart. Originally intended for CentOS per gist but should be portable.

WSLUser avatar Mar 28 '19 14:03 WSLUser

Hello,

We moved SSH away from rc.local, to leave it untouched for user usage like in regular Linux distros.

We will leave it simple and see user feedback. So for now, service nginx restart for example can be added to rc.local before exit 0 by the user. Also the latest rc.local comes with runparts in /etc/boot.d. So scripts can be added in this directory to have a more organized way.

For now, the services installed by pengwin-setup like SSH will go directly into /etc/profile.d and /etc/sudoers.d

Regards

crramirez avatar Mar 29 '19 23:03 crramirez