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

Allow custom startup scripts that survive an upgrade (for external developers). #169

Closed
izak opened this issue Jul 12, 2017 · 4 comments
Closed

Comments

@izak
Copy link
Collaborator

izak commented Jul 12, 2017

When advanced users customise the CCGX with their own software, this is overwritten whenever the venus image is updated. Though the developer can store his software on the /data partition to survive updates, startup scripts the developer might have put in place won't.

@izak
Copy link
Collaborator Author

izak commented Jul 12, 2017

Initial implementation, open for comments/criticism.

@oldwindmill
Copy link

I'm just a solution architect, not a developer.. But, when I first saw the issue posed, my immediate thought was to call an install time script which would check for the presence of a file in /data, and similarly on start up.
Presumably, a new service could be implemented via an install script which creates a symlink into /etc/service from a users installation in say /data/user/service
For consistency, a 'style guide' or set of common patterns would be great...
So, Izak's approach works for me..

@izak
Copy link
Collaborator Author

izak commented Jul 15, 2017

The idea was literally to follow a style similar to Debian's /etc/rc.local. The only additional requirement was that you could also hook early functionality (before the network comes up), so there is two scripts: rcS.local and rc.local, the former runs right at the end of startup scripts, and the latter runs after the rest of the services has started. You can indeed do anything you want here, including creating the required symlinks to start a service, install a cron job, or whatever your heart desires.

@mpvader
Copy link
Contributor

mpvader commented Oct 16, 2017

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

No branches or pull requests

3 participants