Skip to content

Commit 93df661

Browse files
committed
feat: auto start services
1 parent cc6c8d1 commit 93df661

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
#
4+
# Copyright (C) 2023 Nethesis S.r.l.
5+
# SPDX-License-Identifier: GPL-3.0-or-later
6+
#
7+
set -e
8+
9+
# Redirect any output to the journal (stderr)
10+
exec 1>&2
11+
12+
# If the control reaches this step, the service can be enabled and started
13+
14+
touch smarthost.env
15+
16+
systemctl --user enable firefly.service
17+
systemctl --user restart firefly.service

0 commit comments

Comments
 (0)