Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Documented way of disabling services at boot seems to not work #38

Open
blbradley opened this issue Apr 27, 2015 · 9 comments
Open

Documented way of disabling services at boot seems to not work #38

blbradley opened this issue Apr 27, 2015 · 9 comments
Assignees

Comments

@blbradley
Copy link

Hefty Googling first, of course.

Test case:

root@master1:~# ps aux | grep 'java\|mesos'
root       271  0.0  1.0 754072 22520 ?        Sl   13:22   0:00 /usr/sbin/mesos-slave --master=zk://localhost:2181/mesos --log_dir=/var/log/mesos
zookeep+   281  0.1  2.2 1527852 45132 ?       Sl   13:22   0:01 /usr/bin/java -cp /etc/zookeeper/conf:/usr/share/java/jline.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/netty.jar:/usr/share/java/slf4j-api.jar:/usr/share/java/slf4j-log4j12.jar:/usr/share/java/zookeeper.jar -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false -Dzookeeper.log.dir=/var/log/zookeeper -Dzookeeper.root.logger=INFO,ROLLINGFILE org.apache.zookeeper.server.quorum.QuorumPeerMain /etc/zookeeper/conf/zoo.cfg
root       289  0.0  1.1 812076 23880 ?        Sl   13:22   0:00 /usr/sbin/mesos-master --zk=zk://localhost:2181/mesos --port=5050 --log_dir=/var/log/mesos --quorum=1 --work_dir=/var/lib/mesos
root       297  0.0  0.0  23712  1240 ?        S    13:22   0:00 logger -p user.info -t mesos-slave[271]
root       298  0.0  0.1  23712  2400 ?        S    13:22   0:00 logger -p user.err -t mesos-slave[271]
root       305  0.0  0.0  23712  1248 ?        S    13:22   0:00 logger -p user.info -t mesos-master[289]
root       306  0.0  0.1  23712  2412 ?        S    13:22   0:00 logger -p user.err -t mesos-master[289]
root       459  0.0  0.0  12724  2008 pts/0    S+   13:31   0:00 grep java\|mesos
root@master1:~# ls -l /etc/init/*.override
ls: cannot access /etc/init/*.override: No such file or directory
root@master1:~# echo manual > /etc/init/mesos-master.override
root@master1:~# echo manual > /etc/init/mesos-slave.override
root@master1:~# echo manual > /etc/init/zookeeper.override
root@master1:~# ls -l /etc/init/*.override
-rw-r--r-- 1 root root 7 Apr 27 13:32 /etc/init/mesos-master.override
-rw-r--r-- 1 root root 7 Apr 27 13:32 /etc/init/mesos-slave.override
-rw-r--r-- 1 root root 7 Apr 27 13:32 /etc/init/zookeeper.override
root@master1:~# reboot

...

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Apr 27 13:23:02 2015 from aeris-ubuntu
debian@master1:~$ sudo su -
root@master1:~# ps aux | grep 'java\|mesos'
root       274  0.1  1.1 754072 22664 ?        Sl   13:34   0:00 /usr/sbin/mesos-slave --master=zk://localhost:2181/mesos --log_dir=/var/log/mesos
zookeep+   283  1.7  2.1 1527852 44688 ?       Sl   13:34   0:00 /usr/bin/java -cp /etc/zookeeper/conf:/usr/share/java/jline.jar:/usr/share/java/log4j-1.2.jar:/usr/share/java/xercesImpl.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/netty.jar:/usr/share/java/slf4j-api.jar:/usr/share/java/slf4j-log4j12.jar:/usr/share/java/zookeeper.jar -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.local.only=false -Dzookeeper.log.dir=/var/log/zookeeper -Dzookeeper.root.logger=INFO,ROLLINGFILE org.apache.zookeeper.server.quorum.QuorumPeerMain /etc/zookeeper/conf/zoo.cfg
root       291  0.1  1.1 812076 23688 ?        Sl   13:34   0:00 /usr/sbin/mesos-master --zk=zk://localhost:2181/mesos --port=5050 --log_dir=/var/log/mesos --quorum=1 --work_dir=/var/lib/mesos
root       300  0.0  0.0  23712  1184 ?        S    13:34   0:00 logger -p user.info -t mesos-slave[274]
root       301  0.0  0.1  23712  2400 ?        S    13:34   0:00 logger -p user.err -t mesos-slave[274]
root       310  0.0  0.0  23712  1204 ?        S    13:34   0:00 logger -p user.info -t mesos-master[291]
root       311  0.0  0.1  23712  2348 ?        S    13:34   0:00 logger -p user.err -t mesos-master[291]
root       424  0.0  0.0  12724  1992 pts/0    S+   13:34   0:00 grep java\|mesos
root@master1:~# 
@ssk2
Copy link

ssk2 commented Apr 27, 2015

Thanks for the issue @blbradley! What documentation are you referring to? We'll get that updated.

@ssk2
Copy link

ssk2 commented Apr 27, 2015

cc @joel-hamill

@blbradley
Copy link
Author

Mesosphere Packages page, part of the main Mesosphere docs.

@blbradley
Copy link
Author

Under the Debian section

@ssk2
Copy link

ssk2 commented Apr 27, 2015

Thanks! I'll make sure we update that. We're undergoing some heavy docs changes at the moment so it might be a few days.

@blbradley
Copy link
Author

My original use case was Debian Jessie. So, I tried Wheezy also to be sure. Same result.

No rush, no worries. 😁

@lingmann
Copy link

Hi @blbradley our debian packages use standard sysv init scripts because debian wheezy does not ship with systemd support. You can disable the default startup scripts in this environment with:

sudo update-rc.d mesos-master disable
sudo update-rc.d mesos-slave disable
sudo update-rc.d zookeeper disable
sudo update-rc.d marathon disable

@blbradley
Copy link
Author

@lingmann Thank for responding! This is how to do it. Maybe we can keep this issue open until the docs are updated?

Cheers!

@cmaloney
Copy link

A whole lot of this is probably going to get heavily reworked when we ship mesos 0.23 packages. Definitely can keep this issue open for now until all the packaging changes we're making are decided on / documented / shipped.

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

No branches or pull requests

5 participants