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, group,
proxy, proxy,
]), ]),
restart: async () => callBaseMethod<unknown>(Podkop.AvailableMethods.RESTART), restart: async () =>
start: async () => callBaseMethod<unknown>(Podkop.AvailableMethods.START), callBaseMethod<unknown>(
stop: async () => callBaseMethod<unknown>(Podkop.AvailableMethods.STOP), 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 () => enable: async () =>
callBaseMethod<unknown>( callBaseMethod<unknown>(
Podkop.AvailableMethods.ENABLE, Podkop.AvailableMethods.ENABLE,

View File

@@ -493,9 +493,21 @@ var PodkopShellMethods = {
group, group,
proxy proxy
]), ]),
restart: async () => callBaseMethod(Podkop.AvailableMethods.RESTART), restart: async () => callBaseMethod(
start: async () => callBaseMethod(Podkop.AvailableMethods.START), Podkop.AvailableMethods.RESTART,
stop: async () => callBaseMethod(Podkop.AvailableMethods.STOP), [],
"/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( enable: async () => callBaseMethod(
Podkop.AvailableMethods.ENABLE, Podkop.AvailableMethods.ENABLE,
[], [],