Ask Your Question

Revision history [back]

Fedora 26 use systemd, systemd use different way to load services than init.d, you should follow systemd standard this should be a good reading to lear and do Read This

Using systemd you script should be something like this:

[Unit]
Description=service_description
After=network.target

[Service]
ExecStart=ssserver -c /etc/shadowsocks.json
ExecStop=ssserver -c /etc/shadowsocks.json -d stop

[Install]
WantedBy=default.target

That is to give you and idea of how simple is creating a service on systemd, you may need to add the path to access ssserver and if it need to run as specific user add that in the script. Hope this help good luck.