-
Notifications
You must be signed in to change notification settings - Fork 202
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
add init.scripts and systemd #146
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution! A question about the fpm change for the DEB -- whether the excludes should also be applied for the RPM. LGTM otherwise
|
||
ARCH="`uname -m`" | ||
|
||
cp "$TEMP/bin/uniqush-push" "$BUILD/usr/bin" | ||
cp "$TEMP/src/github.com/uniqush/uniqush-push/conf/uniqush-push.conf" "$BUILD/etc/uniqush" | ||
cp "../conf/systemd/uniqush-push.service" "$BUILD/systemd/uniqush-push.service" | ||
cp "../conf/systemvinit/uniqush.init" "$BUILD/systemvinit/uniqush-push" | ||
cp "$TEMP/src/github.com/uniqush/uniqush-push/LICENSE" "$LICENSE" | ||
|
||
fpm -s dir -t rpm -v "$VERSION" -n uniqush-push --license="$LICENSE" --maintainer="Nan Deng" --vendor "uniqush" --url="http://uniqush.org" --category Network --description "Uniqush is a free and open source software which provides a unified push service for server-side notification to apps on mobile devices" -a "$ARCH" -C "$BUILD" . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this need an --exclude="system*"
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do u mean ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it works either on Systemd and on the old systemV
b35dce3
to
b0d3478
Compare
b0d3478
to
5beaf63
Compare
I've created a couple of scripts to have :
The build scripts have been updated so the build will take
care of Systemd & for old System V init scripts. this way when installing
.deb everyone will be able to start the uniqush-push deamon easily.