mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-09 04:56:51 +03:00
fix: change command fir start/stop/restart actions
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
[],
|
[],
|
||||||
|
|||||||
Reference in New Issue
Block a user