fix: change command fir start/stop/restart actions

This commit is contained in:
divocat
2025-10-15 14:33:46 +03:00
parent 46ec79e003
commit b2a6971700
2 changed files with 33 additions and 6 deletions

View File

@@ -44,9 +44,24 @@ export const PodkopShellMethods = {
group,
proxy,
]),
restart: async () => callBaseMethod<unknown>(Podkop.AvailableMethods.RESTART),
start: async () => callBaseMethod<unknown>(Podkop.AvailableMethods.START),
stop: async () => callBaseMethod<unknown>(Podkop.AvailableMethods.STOP),
restart: async () =>
callBaseMethod<unknown>(
Podkop.AvailableMethods.RESTART,
[],
'/etc/init.d/podkop',
),
start: async () =>
callBaseMethod<unknown>(
Podkop.AvailableMethods.START,
[],
'/etc/init.d/podkop',
),
stop: async () =>
callBaseMethod<unknown>(
Podkop.AvailableMethods.STOP,
[],
'/etc/init.d/podkop',
),
enable: async () =>
callBaseMethod<unknown>(
Podkop.AvailableMethods.ENABLE,

View File

@@ -493,9 +493,21 @@ var PodkopShellMethods = {
group,
proxy
]),
restart: async () => callBaseMethod(Podkop.AvailableMethods.RESTART),
start: async () => callBaseMethod(Podkop.AvailableMethods.START),
stop: async () => callBaseMethod(Podkop.AvailableMethods.STOP),
restart: async () => callBaseMethod(
Podkop.AvailableMethods.RESTART,
[],
"/etc/init.d/podkop"
),
start: async () => callBaseMethod(
Podkop.AvailableMethods.START,
[],
"/etc/init.d/podkop"
),
stop: async () => callBaseMethod(
Podkop.AvailableMethods.STOP,
[],
"/etc/init.d/podkop"
),
enable: async () => callBaseMethod(
Podkop.AvailableMethods.ENABLE,
[],