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

Creating 'wings service-install' command #136

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Creating 'wings service-install' command #136

wants to merge 4 commits into from

Conversation

mundotv789123
Copy link

command to create wings service automatically facilitating the installation process.

@chirag350
Copy link

so I need to install wings to install wings? makes sense.

@mundotv789123
Copy link
Author

no, you install wings and enable the wing as a service, automatically, you dont need to create wings.service, the code create it for you

@chirag350
Copy link

oh that actually makes sense, wouldn't it be better to call it daemonize? and I think it'd be better to use systemd bindings (https://github.com/coreos/go-systemd)

Copy link
Member

@parkervcp parkervcp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this was accepted this is a change that would be needed

return
}

command := exec.Command("systemctl", "enable", "--now", serviceFile)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are missing a systemctl daemon-reload after adding the systemd files. You need to reload after creating the file before you can start the service

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes i did really forget that, thanks.

@mundotv789123 mundotv789123 closed this by deleting the head repository Feb 7, 2023
@mundotv789123 mundotv789123 reopened this Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants