-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
329 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[Unit] | ||
Description=OVOS ADMIN PHAL | ||
PartOf=ovos.service | ||
After=ovos.service | ||
After=ovos-messagebus.service | ||
|
||
[Service] | ||
Type=notify | ||
#User=ovos | ||
ExecStart=/home/pi/.venvs/ovos/bin/python /usr/libexec/ovos-systemd-admin-phal | ||
TimeoutStartSec=1m | ||
TimeoutStopSec=1m | ||
Restart=on-failure | ||
StartLimitInterval=5min | ||
StartLimitBurst=4 | ||
|
||
[Install] | ||
WantedBy=ovos.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=OVOS Audio | ||
PartOf=ovos.service | ||
After=ovos.service | ||
After=ovos-messagebus.service | ||
|
||
[Service] | ||
Type=notify | ||
ExecStart=/home/pi/.venvs/ovos/bin/python /usr/libexec/ovos-systemd-audio | ||
TimeoutStartSec=1m | ||
TimeoutStopSec=1m | ||
Restart=on-failure | ||
StartLimitInterval=5min | ||
StartLimitBurst=4 | ||
|
||
[Install] | ||
WantedBy=ovos.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[Unit] | ||
Description=OVOS Dinkum Listener | ||
PartOf=ovos.service | ||
After=ovos.service | ||
After=ovos-messagebus.service | ||
|
||
[Service] | ||
Type=notify | ||
ExecStart=/home/pi/.venvs/ovos/bin/python /usr/libexec/ovos-systemd-listener | ||
TimeoutStartSec=1m | ||
TimeoutStopSec=1m | ||
Restart=on-failure | ||
StartLimitInterval=5min | ||
StartLimitBurst=4 | ||
|
||
[Install] | ||
WantedBy=ovos.service | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[Unit] | ||
Description=OVOS Messagebus | ||
PartOf=ovos.service | ||
After=ovos.service | ||
|
||
[Service] | ||
Type=notify | ||
ExecStart=/home/pi/.venvs/ovos/bin/python /usr/libexec/ovos-systemd-messagebus | ||
TimeoutStartSec=1m | ||
TimeoutStopSec=1m | ||
Restart=on-failure | ||
StartLimitInterval=5min | ||
StartLimitBurst=4 | ||
|
||
[Install] | ||
WantedBy=ovos.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[Unit] | ||
Description=OVOS PHAL | ||
PartOf=ovos.service | ||
After=ovos.service | ||
After=ovos-messagebus.service | ||
|
||
[Service] | ||
Type=notify | ||
ExecStart=/home/pi/.venvs/ovos/bin/python /usr/libexec/ovos-systemd-phal | ||
TimeoutStartSec=1m | ||
TimeoutStopSec=1m | ||
Restart=on-failure | ||
StartLimitInterval=5min | ||
StartLimitBurst=4 | ||
|
||
[Install] | ||
WantedBy=ovos.service | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[Unit] | ||
Description=OVOS Skills | ||
PartOf=ovos.service | ||
After=ovos.service | ||
After=ovos-messagebus.service | ||
|
||
[Service] | ||
Type=notify | ||
ExecStart=/home/pi/.venvs/ovos/bin/python /usr/libexec/ovos-systemd-skills | ||
TimeoutStartSec=10m | ||
TimeoutStopSec=1m | ||
Restart=on-failure | ||
StartLimitInterval=5min | ||
StartLimitBurst=4 | ||
|
||
[Install] | ||
WantedBy=ovos.service | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env python | ||
########################################################################## | ||
# ovos-systemd-admin-phal.py | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
########################################################################## | ||
import sdnotify | ||
from ovos_PHAL.admin import main | ||
|
||
n = sdnotify.SystemdNotifier() | ||
|
||
|
||
def notify_ready(): | ||
n.notify('READY=1') | ||
print('Startup of admin PHAL service complete') | ||
|
||
|
||
def notify_stopping(): | ||
n.notify('STOPPING=1') | ||
print('Stopping the admin PHAL service') | ||
|
||
|
||
main(ready_hook=notify_ready, stopping_hook=notify_stopping) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env python | ||
########################################################################## | ||
# ovos-systemd_audio.py | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
########################################################################## | ||
import sdnotify | ||
from ovos_audio.__main__ import main | ||
|
||
n = sdnotify.SystemdNotifier() | ||
|
||
|
||
def notify_ready(): | ||
n.notify('READY=1') | ||
print('Startup of OVOS Audio service complete') | ||
|
||
|
||
def notify_stopping(): | ||
n.notify('STOPPING=1') | ||
print('Stopping the OVOS Audio service') | ||
|
||
|
||
main(ready_hook=notify_ready, stopping_hook=notify_stopping) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sdnotify | ||
from ovos_dinkum_listener.__main__ import main | ||
|
||
n = sdnotify.SystemdNotifier() | ||
|
||
|
||
def notify_ready(): | ||
n.notify('READY=1') | ||
print('Startup of Mycroft Voice service complete') | ||
|
||
|
||
def notify_stopping(): | ||
n.notify('STOPPING=1') | ||
print('Stopping the Mycroft Voice service') | ||
|
||
|
||
main(ready_hook=notify_ready, stopping_hook=notify_stopping) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env python | ||
########################################################################## | ||
# ovos-systemd_messagebus.py | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
########################################################################## | ||
import sdnotify | ||
from ovos_messagebus.__main__ import main | ||
|
||
n = sdnotify.SystemdNotifier() | ||
|
||
|
||
def notify_ready(): | ||
n.notify('READY=1') | ||
print('Startup of OVOS Messagebus service complete') | ||
|
||
|
||
def notify_stopping(): | ||
n.notify('STOPPING=1') | ||
print('Stopping the OVOS Messagebus service') | ||
|
||
|
||
main(ready_hook=notify_ready, stopping_hook=notify_stopping) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env python | ||
########################################################################## | ||
# ovos-systemd_enclosure.py | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
########################################################################## | ||
import sdnotify | ||
from ovos_PHAL.__main__ import main | ||
|
||
n = sdnotify.SystemdNotifier() | ||
|
||
|
||
def notify_ready(): | ||
n.notify('READY=1') | ||
print('Startup of OVOS PHAL service complete') | ||
|
||
|
||
def notify_stopping(): | ||
n.notify('STOPPING=1') | ||
print('Stopping the OVOS PHAL service') | ||
|
||
|
||
main(ready_hook=notify_ready, stopping_hook=notify_stopping) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env python | ||
########################################################################## | ||
# ovos-systemd_skills.py | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
########################################################################## | ||
import sdnotify | ||
from ovos_core.__main__ import main | ||
|
||
n = sdnotify.SystemdNotifier() | ||
|
||
|
||
def notify_ready(): | ||
n.notify('READY=1') | ||
print('Startup of OVOS Skills service complete') | ||
|
||
|
||
def notify_stopping(): | ||
n.notify('STOPPING=1') | ||
print('Stopping the OVOS Skills service') | ||
|
||
|
||
main(ready_hook=notify_ready, stopping_hook=notify_stopping) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=OVOS A.I. Software stack. | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/bin/true | ||
RemainAfterExit=yes | ||
|
||
[Install] | ||
WantedBy=default.target |
This file was deleted.
Oops, something went wrong.