Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please add systemd unit file #263

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 0 comments
Open

please add systemd unit file #263

GoogleCodeExporter opened this issue Mar 16, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

please add a native systemd unit file

I see that /etc/init.d/shellinabox is really complex.

Here is the service provided by Arch that can be used as 
a starting point.

This should go in /lib/systemd/system/shellinabox.service
or in /etc/systemd/system/shellinabox.service during tests.

#######

[Unit]                                                                          

Description=Serve a login-terminal over http on  port 4200.                     

Required=sshd.service                                                           

After=sshd.service                                                              


[Service]                                                                       

User=root                                                                       

Type=forking                                                                    

EnvironmentFile=/etc/conf.d/shellinaboxd                                        

ExecStart=/usr/bin/shellinaboxd  $SHELLINABOXD_ARGS                             

ExecReload=/bin/kill -HUP $MAINPID                                              

KillMode=process                                                                

Restart=on-abort                                                                


[Install]                                                                       

WantedBy=multi-user.target 

Original issue reported on code.google.com by [email protected] on 4 Sep 2014 at 8:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant