Commit 449df60 1 parent fdca44e commit 449df60 Copy full SHA for 449df60
File tree 1 file changed +22
-0
lines changed
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ func InitiaCommand() *cobra.Command {
36
36
initiaInitCommand (),
37
37
initiaStartCommand (),
38
38
initiaStopCommand (),
39
+ initiaRestartCommand (),
39
40
initiaLogCommand (),
40
41
)
41
42
@@ -104,6 +105,27 @@ func initiaStopCommand() *cobra.Command {
104
105
return startCmd
105
106
}
106
107
108
+ func initiaRestartCommand () * cobra.Command {
109
+ reStartCmd := & cobra.Command {
110
+ Use : "restart" ,
111
+ Short : "Restart the initiad full node application." ,
112
+ RunE : func (cmd * cobra.Command , args []string ) error {
113
+ err := utils .StopService (utils .GetRunL1NodeServiceName ())
114
+ if err != nil {
115
+ return err
116
+ }
117
+
118
+ err = utils .StartService (utils .GetRunL1NodeServiceName ())
119
+ if err != nil {
120
+ return err
121
+ }
122
+ return nil
123
+ },
124
+ }
125
+
126
+ return reStartCmd
127
+ }
128
+
107
129
func initiaLogCommand () * cobra.Command {
108
130
logCmd := & cobra.Command {
109
131
Use : "log" ,
You can’t perform that action at this time.
0 commit comments