mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-31 08:25:36 +00:00
Remove unused code from dbus module
This commit is contained in:
parent
4de816d1e9
commit
97ec2a4151
@ -79,24 +79,6 @@ export async function stopSocket(socketName: string) {
|
||||
return stopUnit(`${socketName}.socket`);
|
||||
}
|
||||
|
||||
export async function enableService(serviceName: string) {
|
||||
const systemd = await getSystemdInterface();
|
||||
try {
|
||||
systemd.EnableUnitFiles([`${serviceName}.service`], false, false);
|
||||
} catch (e) {
|
||||
throw new DbusError(e as DBusError);
|
||||
}
|
||||
}
|
||||
|
||||
export async function disableService(serviceName: string) {
|
||||
const systemd = await getSystemdInterface();
|
||||
try {
|
||||
systemd.DisableUnitFiles([`${serviceName}.service`], false);
|
||||
} catch (e) {
|
||||
throw new DbusError(e as DBusError);
|
||||
}
|
||||
}
|
||||
|
||||
export const reboot = async () =>
|
||||
setTimeout(async () => {
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user