Beispiel #1
0
def _details(daemon_id):
    return render_template('_details.html',
                           daemon_id=daemon_id,
                           run_file_content=core.run_file(daemon_id),
                           run_user_file_content=core.run_file(daemon_id, run_user=True),
                           run_log_file=core.log_file_locations(daemon_id, 'run_log')[0],
                           daemon_log_file=core.log_file_locations(daemon_id, 'daemon_log')[0],
                           autostart=core.daemon_autostart(daemon_id))
Beispiel #2
0
def _details(daemon_id):
    return render_template(
        '_details.html',
        daemon_id=daemon_id,
        run_file_content=core.run_file(daemon_id),
        run_user_file_content=core.run_file(daemon_id, run_user=True),
        run_log_file=core.log_file_locations(daemon_id, 'run_log')[0],
        daemon_log_file=core.log_file_locations(daemon_id, 'daemon_log')[0],
        autostart=core.daemon_autostart(daemon_id))
Beispiel #3
0
    def test_daemon_autostart(self):
        self._create_test_daemon(1)
        dir_name = 'test_daemon_1'
        self.assertTrue(daemon_autostart(dir_name))

        daemon_autostart(dir_name, enabled=True)
        self.assertTrue(daemon_autostart(dir_name))

        daemon_autostart(dir_name, enabled=False)
        self.assertFalse(daemon_autostart(dir_name))

        daemon_autostart(dir_name, enabled=False)
        self.assertFalse(daemon_autostart(dir_name))

        daemon_autostart(dir_name, enabled=True)
        self.assertTrue(daemon_autostart(dir_name))
Beispiel #4
0
def daemon_action_no_autostart(daemon_id):
    core.daemon_autostart(daemon_id, enabled=False)
    return Response(status=204)
Beispiel #5
0
def daemon_action_no_autostart(daemon_id):
    core.daemon_autostart(daemon_id, enabled=False)
    return Response(status=204)