update mnml service file for syslog
This commit is contained in:
parent
ddc75e6ff9
commit
784c5910a1
@ -216,7 +216,7 @@ function tutorialStage(tutorial, ws, clearTutorial, instance) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const classes = tutorial === 8 ? 'focus' : '';
|
const classes = tutorial === 8 ? 'focus' : '';
|
||||||
const text = tutorial === 8 ? 'Continue' : 'Close Tutorial'
|
const text = tutorial === 8 ? 'Continue' : 'Skip Tutorial'
|
||||||
const exitTutorial = <button
|
const exitTutorial = <button
|
||||||
class={classes}
|
class={classes}
|
||||||
onClick={e => e.stopPropagation()}
|
onClick={e => e.stopPropagation()}
|
||||||
|
|||||||
@ -1,12 +1,14 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=mnml game server
|
Description=mnml game server
|
||||||
User=mnml
|
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
User=mnml
|
||||||
ExecStart=/usr/local/mnml/bin/mnml
|
ExecStart=/usr/local/mnml/bin/mnml
|
||||||
KillMode=process
|
KillMode=process
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartPreventExitStatus=255
|
RestartPreventExitStatus=255
|
||||||
|
StandardOutput=null
|
||||||
|
StandardError=null
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
@ -77,11 +77,11 @@ fn handle_notification(n: Notification, pool: &PgPool, events: &Sender<Event>) {
|
|||||||
|
|
||||||
let msg = match n.action {
|
let msg = match n.action {
|
||||||
Action::Delete => {
|
Action::Delete => {
|
||||||
warn!("unimplemented delete notification {:?}", n);
|
// warn!("unimplemented delete notification {:?}", n);
|
||||||
None
|
None
|
||||||
},
|
},
|
||||||
Action::Insert => {
|
Action::Insert => {
|
||||||
warn!("unimplemented insert notification {:?}", n);
|
// warn!("unimplemented insert notification {:?}", n);
|
||||||
None
|
None
|
||||||
},
|
},
|
||||||
Action::Update => match n.table {
|
Action::Update => match n.table {
|
||||||
@ -92,7 +92,7 @@ fn handle_notification(n: Notification, pool: &PgPool, events: &Sender<Event>) {
|
|||||||
Table::Games =>
|
Table::Games =>
|
||||||
Some(Event::Push(n.id, RpcMessage::GameState(game::game_get(&mut tx, n.id).unwrap()))),
|
Some(Event::Push(n.id, RpcMessage::GameState(game::game_get(&mut tx, n.id).unwrap()))),
|
||||||
_ => {
|
_ => {
|
||||||
warn!("unimplemented update notification {:?}", n);
|
// warn!("unimplemented update notification {:?}", n);
|
||||||
None
|
None
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user