Merge branch 'master' into core-rest-flask

This commit is contained in:
Blake J. Harnden 2018-09-11 08:09:25 -07:00
commit 832f3e3ee5
5 changed files with 14 additions and 19 deletions

View file

@ -226,8 +226,8 @@ ${PACKAGE_STRING} Configuration:
Build: Build:
Host System Type: ${host} Host System Type: ${host}
C Compiler and flags: ${CC} ${CFLAGS} C Compiler and flags: ${CC} ${CFLAGS}
Prefix: ${prefix} Prefix: ${prefix}
Exec Prefix: ${exec_prefix} Exec Prefix: ${exec_prefix}
GUI: GUI:
GUI path: ${CORE_LIB_DIR} GUI path: ${CORE_LIB_DIR}
@ -239,11 +239,11 @@ Daemon:
Python modules: ${pythondir} Python modules: ${pythondir}
Logs: ${CORE_STATE_DIR}/log Logs: ${CORE_STATE_DIR}/log
Startup: ${with_startup} Startup: ${with_startup}
Features to build: Features to build:
Build GUI: ${enable_gui} Build GUI: ${enable_gui}
Build Daemon: ${enable_daemon} Build Daemon: ${enable_daemon}
Documentation: ${want_docs} Documentation: ${want_docs}
------------------------------------------------------------------------" ------------------------------------------------------------------------"

View file

@ -854,12 +854,13 @@ class CoreEmu(object):
for session in sessions.itervalues(): for session in sessions.itervalues():
session.shutdown() session.shutdown()
def create_session(self, _id=None, master=True): def create_session(self, _id=None, master=True, _cls=EmuSession):
""" """
Create a new CORE session, set to master if running standalone. Create a new CORE session, set to master if running standalone.
:param int _id: session id for new session :param int _id: session id for new session
:param bool master: sets session to master :param bool master: sets session to master
:param class _cls: EmuSession class to use
:return: created session :return: created session
:rtype: EmuSession :rtype: EmuSession
""" """
@ -871,7 +872,7 @@ class CoreEmu(object):
if session_id not in self.sessions: if session_id not in self.sessions:
break break
session = EmuSession(session_id, config=self.config) session = _cls(session_id, config=self.config)
logger.info("created session: %s", session_id) logger.info("created session: %s", session_id)
if master: if master:
session.master = True session.master = True

View file

@ -1,13 +0,0 @@
/var/log/core-daemon.log {
rotate 7
daily
missingok
notifempty
compress
sharedscripts
postrotate
if [ -r /var/run/core-daemon.pid ]; then
kill -USR1 $(cat /var/run/core-daemon.pid) > /dev/null 2>&1
fi
endscript
}

1
docs/_config.yml Normal file
View file

@ -0,0 +1 @@
theme: jekyll-theme-cayman

View file

@ -170,6 +170,12 @@ This option is listed here for developers and advanced users who are comfortable
To build CORE from source on Ubuntu, first install these development packages. These packages are not required for normal binary package installs. To build CORE from source on Ubuntu, first install these development packages. These packages are not required for normal binary package installs.
#### Ubuntu 18.04 pre-reqs
```shell
sudo apt install automake pkg-config gcc libev-dev bridge-utils ebtables python-dev python-sphinx python-setuptools python-lxml python-enum34 tk libtk-img
```
#### Ubuntu 16.04 Requirements #### Ubuntu 16.04 Requirements
```shell ```shell